From: Axel Lin Date: Thu, 14 Jun 2012 08:00:53 +0000 (+0800) Subject: regulator: tps6524x: Fix get_voltage_sel for fixed voltage X-Git-Tag: v3.5-rc5~27^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8386a00f1443f676e8b614f654e2e324fdc0b3b3;p=platform%2Fkernel%2Flinux-3.10.git regulator: tps6524x: Fix get_voltage_sel for fixed voltage get_voltage_sel() should return selector rather than voltage. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c index b88b3df..1b299aa 100644 --- a/drivers/regulator/tps6524x-regulator.c +++ b/drivers/regulator/tps6524x-regulator.c @@ -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)