regulator: palmas: preserve mode configuration across enable/disable
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 11 Feb 2013 13:13:56 +0000 (18:13 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Thu, 14 Feb 2013 21:24:16 +0000 (13:24 -0800)
commitf57044ca542e6753ebdcccbbb9bf73af412cd104
tree6a884e41b9c058d6990aa48cb87931d6c8a93800
parentf08420c0531a0a46f4e9f3be52ab2c2e08ec3318
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>
drivers/regulator/palmas-regulator.c
include/linux/mfd/palmas.h