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

Commit f03570cf authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: Fix setting selector in tps6524x set_voltage function



Don't assign the voltage to selector.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
parent fde7d904
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -481,7 +481,7 @@ static int set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV,
	if (i >= info->n_voltages)
		i = info->n_voltages - 1;

	*selector = info->voltages[i];
	*selector = i;

	return write_field(hw, &info->voltage, i);
}