aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/ab8500.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/ab8500.c')
-rw-r--r--drivers/regulator/ab8500.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c
index db6b70f20511..2f4ec0facef1 100644
--- a/drivers/regulator/ab8500.c
+++ b/drivers/regulator/ab8500.c
@@ -215,7 +215,8 @@ static int ab8500_get_best_voltage_index(struct regulator_dev *rdev,
215} 215}
216 216
217static int ab8500_regulator_set_voltage(struct regulator_dev *rdev, 217static int ab8500_regulator_set_voltage(struct regulator_dev *rdev,
218 int min_uV, int max_uV) 218 int min_uV, int max_uV,
219 unsigned *selector)
219{ 220{
220 int regulator_id, ret; 221 int regulator_id, ret;
221 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev); 222 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
@@ -232,6 +233,8 @@ static int ab8500_regulator_set_voltage(struct regulator_dev *rdev,
232 return ret; 233 return ret;
233 } 234 }
234 235
236 *selector = ret;
237
235 /* set the registers for the request */ 238 /* set the registers for the request */
236 ret = abx500_mask_and_set_register_interruptible(info->dev, 239 ret = abx500_mask_and_set_register_interruptible(info->dev,
237 info->voltage_bank, info->voltage_reg, 240 info->voltage_bank, info->voltage_reg,