lp3971: Fix BUCK_VOL_CHANGE_SHIFT logic
authorAxel Lin <axel.lin@gmail.com>
Thu, 11 Mar 2010 01:50:07 +0000 (09:50 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 22 Mar 2010 19:44:45 +0000 (19:44 +0000)
commit451a73cd46573444f68f412c87439c0a291718ec
tree3cf24100680cdcfad0fc7cf5b0dd0320f2092e3d
parentcdb868f58103825856e27aa4e1f26943fc119e41
lp3971: Fix BUCK_VOL_CHANGE_SHIFT logic

Given x=0,1,2, current implementation of BUCK_VOL_CHANGE_SHIFT(x) returns 0,4,8.
The correct return value should be 0,4,6.
This patch fix the logic.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/lp3971.c