Adapt flashlight controller to new torch code

Change-Id: I55071cb14062ea0485b0c03134ef5dcdae756e6c