Skip to content

Commit

Permalink
regulator: tps6524x: Fix get_voltage_sel for fixed voltage
Browse files Browse the repository at this point in the history
get_voltage_sel() should return selector rather than voltage.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Jun 20, 2012
1 parent 6b57c01 commit 8386a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/tps6524x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ static int get_voltage_sel(struct regulator_dev *rdev)
info = &supply_info[rdev_get_id(rdev)];

if (info->flags & FIXED_VOLTAGE)
return info->fixed_voltage;
return 0;

ret = read_field(hw, &info->voltage);
if (ret < 0)
Expand Down

0 comments on commit 8386a00

Please sign in to comment.