summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-05-01 14:16:39 +0800
committerMark Brown <broonie@kernel.org>2015-05-04 15:07:29 +0100
commitb7c960d5d00412cd8deb08087279287fe12c535b (patch)
treea32f926810e1fd5d4cdc53575ffd1af83508d92e /drivers/regulator
parentec03c08dd14d832f1456527c9da70ed014268b4b (diff)
downloadlinux-stable-b7c960d5d00412cd8deb08087279287fe12c535b.tar.gz
linux-stable-b7c960d5d00412cd8deb08087279287fe12c535b.tar.bz2
linux-stable-b7c960d5d00412cd8deb08087279287fe12c535b.zip
regulator: max77843: Fix enable_mask for max77843 charger
MAX77843_CHG_ENABLE is 0x05, so the enable_mask should be MAX77843_CHG_MASK | MAX77843_CHG_BUCK_MASK. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/max77843.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77843.c b/drivers/regulator/max77843.c
index e4e7687ccd7e..3ae2a9b39828 100644
--- a/drivers/regulator/max77843.c
+++ b/drivers/regulator/max77843.c
@@ -140,7 +140,7 @@ static const struct regulator_desc max77843_supported_regulators[] = {
.type = REGULATOR_CURRENT,
.owner = THIS_MODULE,
.enable_reg = MAX77843_CHG_REG_CHG_CNFG_00,
- .enable_mask = MAX77843_CHG_MASK,
+ .enable_mask = MAX77843_CHG_MASK | MAX77843_CHG_BUCK_MASK,
},
};