]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regulator: anatop: Fix wrong mask used in anatop_get_voltage_sel
authorAxel Lin <axel.lin@gmail.com>
Mon, 16 Jul 2012 16:10:42 +0000 (00:10 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 1 Aug 2012 20:07:21 +0000 (21:07 +0100)
commitd06578b5b2cd8dabcbc9a56147b189396779e836
tree6e7000e32484f5c4040648d9d4d4390057324234
parentc7bc4e51fffda8fa46a5a0470b59f4236ef61adf
regulator: anatop: Fix wrong mask used in anatop_get_voltage_sel

The mask used in anatop_get_voltage_sel does not match the mask used in
anatop_set_voltage_sel.
We need to do left shift anatop_reg->vol_bit_shift bits for the correct mask.

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