regulator: tps6586x-regulator - fix bit_mask parameter for tps6586x_set_bits()
authorAxel Lin <axel.lin@gmail.com>
Sun, 22 Aug 2010 14:42:42 +0000 (22:42 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 1 Sep 2010 11:59:34 +0000 (12:59 +0100)
commit938b45927c240cf75a01ce29af3f173762e762f8
treeebac1011400f450b26932e2960beed9852ea8049
parent327531bada36e5786b13bb6918ad8afc545adfa2
regulator: tps6586x-regulator - fix bit_mask parameter for tps6586x_set_bits()

The third parameter of tps6586x_set_bits() is the bit_mask,
thus we should use (1 << ri->go_bit) instead of ri->go_bit.

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