regulator: tps80031: Correct voltage selection logics
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 2 Feb 2012 10:49:40 +0000 (15:49 +0530)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Mon, 13 Feb 2012 14:23:17 +0000 (06:23 -0800)
commit9483d46c233bc69721e315dfc3f3aacbdfe08c12
tree4c05b0522f9e612b7662f231ad58814fcd22d73b
parente1e0f303cd2a343545e53cf53a1fe84a9cf599dd
regulator: tps80031: Correct voltage selection logics

Fixing the voltage selection logics for a given mininum/maximum
range.

bug 934544

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

Reviewed-on: http://git-master/r/78970
(cherry picked from commit 59b0264b6eda9f1e8123ee5cd82eae7104c3513e)

Change-Id: Ib9f6e8b1b1f0603aeb02af8345704110cd87b51a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/79512
Reviewed-by: Automatic_Commit_Validation_User
drivers/regulator/tps80031-regulator.c