regulator: palmas: use correct bit for finding smps enabled or not
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 15 Mar 2013 10:44:22 +0000 (15:44 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Fri, 15 Mar 2013 21:57:13 +0000 (14:57 -0700)
commite41a88761055f0198a06a6775d413bf0ff574273
treea100d9aa5cbf914af626fcd141745d058653dae6
parent09bcafdf5612a1f1c3a901a2708c9f8b1e61436f
regulator: palmas: use correct bit for finding smps enabled or not

SMPS registers are cached for higher performance on voltage control
and hence it need to check the proper bits for enabled or not in place
of volatile bits.

bug 1250602

Change-Id: I8d2e1fca3926c551523a616b605ac5fd93352c33
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/209976
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Ken Chang <kenc@nvidia.com>
Tested-by: Ken Chang <kenc@nvidia.com>
GVS: Gerrit_Virtual_Submit
drivers/regulator/palmas-regulator.c