diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-02-11 18:43:56 +0530 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-02-14 13:24:16 -0800 |
commit | f57044ca542e6753ebdcccbbb9bf73af412cd104 (patch) | |
tree | 6a884e41b9c058d6990aa48cb87931d6c8a93800 /include | |
parent | f08420c0531a0a46f4e9f3be52ab2c2e08ec3318 (diff) |
regulator: palmas: preserve mode configuration across enable/disable
If regulator rail is configured for a desired mode and
if this rail get disable and again enable then mode
get reset to normal.
Store the desired mode locally and when it enabled, use the stored
preconfigured mode for enabling regulator.
bug 1231293
Change-Id: I396d91609dd91a4f3c682e1279c6f851cda4b94f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/199434
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/palmas.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index 4dfc50bde015..3c21eaaa7254 100644 --- a/include/linux/mfd/palmas.h +++ b/include/linux/mfd/palmas.h @@ -279,6 +279,7 @@ struct palmas_pmic { int smps457; unsigned int ramp_delay[PALMAS_NUM_REGS]; + unsigned int current_mode_reg[PALMAS_NUM_REGS]; int range[PALMAS_REG_SMPS10]; }; |