drivers: tegra: max77665-flash: flash level update
authorCharlie Huang <chahuang@nvidia.com>
Wed, 24 Oct 2012 00:52:29 +0000 (17:52 -0700)
committerSimone Willett <swillett@nvidia.com>
Thu, 25 Oct 2012 00:52:13 +0000 (17:52 -0700)
commitb5f58ebcd87c960c643b73056d6f614bc174941b
treeea88b5f8fb068123ba1ed54f3dc0ba9ff0a974b2
parentc3b2de0da2cad2423b5737cd1195c97d7ebab4d7
drivers: tegra: max77665-flash: flash level update

add logic to assign flash/torch level 0 as disable flash/torch functions.
from the hardware's spec, level 0 means the lowest current 16.625mA.

add torch-by-i2c trigger option and set it as default.

also optimized the power on/off sequences.

bug 1155623
bug 1110380
bug 1116953

Change-Id: I1d592a173c4694287dff1543b21a92e3efcd8f2e
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
(cherry picked from commit e799bf696300020045ab7284e007a87accbf9404)
Reviewed on: http://git-master/r/#change,145113
Reviewed-on: http://git-master/r/146034
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
drivers/media/video/tegra/max77665-flash.c
include/media/max77665-flash.h