Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 938b4592 authored by Axel Lin's avatar Axel Lin Committed by Liam Girdwood
Browse files

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: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 327531ba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ static int tps6586x_dvm_set_voltage(struct regulator_dev *rdev,
	if (ret)
		return ret;

	return tps6586x_set_bits(parent, ri->go_reg, ri->go_bit);
	return tps6586x_set_bits(parent, ri->go_reg, 1 << ri->go_bit);
}

static int tps6586x_regulator_enable(struct regulator_dev *rdev)