regulator: Do proper shift to set correct bit for DC[2|5]_HIB_MODE setting
authorAxel Lin <axel.lin@gmail.com>
Thu, 22 Mar 2012 22:27:10 +0000 (06:27 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 26 Mar 2012 17:35:35 +0000 (18:35 +0100)
commit9300928692f835f76f5604b3b51c3085977edf68
tree293d6acf7b14b978677fe9f3c41c76a2d0bafd85
parenteb4168158f79237498e4d3ddcef6e9436db15a4a
regulator: Do proper shift to set correct bit for DC[2|5]_HIB_MODE setting

DC[2|5]_HIB_MODE is BIT 12 of DCDC[2|5] Control register.
WM8350_DC2_HIB_MODE_ACTIVE/WM8350_DC2_HIB_MODE_DISABLE are defined as 1/0.
Thus we need to left shift WM8350_DC2_HIB_MODE_SHIFT bits.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/wm8350-regulator.c