summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSang-Hun Lee <sanlee@nvidia.com>2014-05-19 15:24:27 -0700
committerMandar Padmawar <mpadmawar@nvidia.com>2014-05-28 05:13:17 -0700
commit7f018564c9da1d4062bca5d258155d43abe8168c (patch)
tree044755caacd0a3ae2d99f00d3fc4ef140776f654 /include/linux
parent940ba3f873878d0ac1cd5b73052058f7f57dcf04 (diff)
regulator: palams: disallow pmic access post shutdown
- Once shutdown has been called against pmic, i2c bus is shutdown, so pmic cannot enable or disable regulators - As such, once shutdown has been called, reject regulator enable/disable calls Bug 1510778 Change-Id: I6eb26d4846ed5c51f882761568c1f9152a0ebb24 Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com> Reviewed-on: http://git-master/r/411684 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/palmas.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h
index 98ce8ccd806d..b12a71388653 100644
--- a/include/linux/mfd/palmas.h
+++ b/include/linux/mfd/palmas.h
@@ -724,6 +724,7 @@ struct palmas_pmic {
bool smps10_regulator_enabled;
int ldo_vref0p425;
bool smps10_boost_disable_deferred;
+ bool shutdown;
int range[PALMAS_REG_SMPS10_OUT1];
unsigned int ramp_delay[PALMAS_REG_SMPS10_OUT1];