regulator: tps80031: use correct voltage conversion formula
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 23 Dec 2011 13:43:06 +0000 (18:43 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Fri, 30 Dec 2011 05:15:17 +0000 (10:15 +0530)
commited9e319dccfcdd8dbdc50a53c72281be6d5096f9
tree5cf8ef27522384fb0656bf37246e81484967c57e
parentf291a073d551dfa671050340308cce49bc47402d
regulator: tps80031: use correct voltage conversion formula

The correct voltage conversion formula for the register programming
is
Code=((Vout-0.6077)/0.01266)+1

Changing existing formula to above equation.

bug 915859

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

Change-Id: Id745cc82269282318cc064f25e789837dc0dfa7a
Reviewed-on: http://git-master/r/72017
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
drivers/regulator/tps80031-regulator.c