]> git.kernelconcepts.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>
Tue, 7 Aug 2012 17:10:26 +0000 (18:10 +0100)
commit3e2a928472daa839e7be0d71c1d8320334ea76e1
tree0ec66e229c0572909758b24ac5b00b469501b61b
parent7f852e0584f67654060f7814149744a1b7250480
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