summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorRajat Verma <rajat.verma@stericsson.com>2011-09-15 15:47:34 +0530
committerPhilippe Langlais <philippe.langlais@linaro.org>2012-03-19 09:02:21 +0100
commitb045624dec091d196e26d43d4a064e9f661c17f9 (patch)
treecdda5db2d143798c59b8bc3b9a7d26eab58042fa /drivers/staging
parentbfe860ca8129e0fcf83a26681399ffd3b1903b27 (diff)
staging: camera_flash: Enable FLASH_MODE_NONE
FLASH_MODE_NONE should be enabled by flash clients to put the flash IC in sleep mode, dropping the input current to less that 45 microamperes. ST-Ericsson ID: 361897 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Rajat Verma <rajat.verma@stericsson.com> Change-Id: I5ff4e409344578043b2f35e19474e215ddde2e44 Signed-off-by: Rajat Verma <rajat.verma@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31744 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Tested-by: Bibek BASU <bibek.basu@stericsson.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/camera_flash/adp1653.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/camera_flash/adp1653.c b/drivers/staging/camera_flash/adp1653.c
index c97014fc5ad..8264e46a1f2 100644
--- a/drivers/staging/camera_flash/adp1653.c
+++ b/drivers/staging/camera_flash/adp1653.c
@@ -117,7 +117,8 @@ static int adp1653_enable_flash_mode(void *priv_data,
if(enable){
- if(!(mode & ADP1653_SUPPORTED_MODES)){
+ if((!(mode & ADP1653_SUPPORTED_MODES)) &&
+ (mode != FLASH_MODE_NONE)) {
DEBUG_LOG("Unsupported mode %lx\n",mode);
err = -EINVAL;
goto out;