From: Axel Lin Date: Sat, 20 Apr 2013 16:35:31 +0000 (+0800) Subject: regulator: lp3971: Convert to use regulator_map_voltage_ascend X-Git-Tag: v3.12-rc1~994^2~22^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e655618e1316719d826eab5af3510128d45f0e6;p=kernel%2Fkernel-generic.git regulator: lp3971: Convert to use regulator_map_voltage_ascend All regulators have ascendant voltage list in this driver. Thus use regulator_map_voltage_ascend is more efficient than the default regulator_map_voltage_iterate. Signed-off-by: Axel Lin Acked-by: Marek Szyprowski Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/lp3971.c b/drivers/regulator/lp3971.c index 9cb2c0f..d8af9e7 100644 --- a/drivers/regulator/lp3971.c +++ b/drivers/regulator/lp3971.c @@ -163,6 +163,7 @@ static int lp3971_ldo_set_voltage_sel(struct regulator_dev *dev, static struct regulator_ops lp3971_ldo_ops = { .list_voltage = regulator_list_voltage_table, + .map_voltage = regulator_map_voltage_ascend, .is_enabled = lp3971_ldo_is_enabled, .enable = lp3971_ldo_enable, .disable = lp3971_ldo_disable, @@ -236,6 +237,7 @@ static int lp3971_dcdc_set_voltage_sel(struct regulator_dev *dev, static struct regulator_ops lp3971_dcdc_ops = { .list_voltage = regulator_list_voltage_table, + .map_voltage = regulator_map_voltage_ascend, .is_enabled = lp3971_dcdc_is_enabled, .enable = lp3971_dcdc_enable, .disable = lp3971_dcdc_disable,