From: Axel Lin Date: Sat, 20 Apr 2013 16:36:56 +0000 (+0800) Subject: regulator: lp3972: Convert to use regulator_map_voltage_ascend X-Git-Tag: accepted/tizen/common/20141203.182822~2431^2~22^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b50003b69dbb60097cf55c44f8e2b4dc25bd0b12;p=platform%2Fkernel%2Flinux-arm64.git regulator: lp3972: 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/lp3972.c b/drivers/regulator/lp3972.c index 0baabcf..61e4cf9 100644 --- a/drivers/regulator/lp3972.c +++ b/drivers/regulator/lp3972.c @@ -309,6 +309,7 @@ static int lp3972_ldo_set_voltage_sel(struct regulator_dev *dev, static struct regulator_ops lp3972_ldo_ops = { .list_voltage = regulator_list_voltage_table, + .map_voltage = regulator_map_voltage_ascend, .is_enabled = lp3972_ldo_is_enabled, .enable = lp3972_ldo_enable, .disable = lp3972_ldo_disable, @@ -389,6 +390,7 @@ static int lp3972_dcdc_set_voltage_sel(struct regulator_dev *dev, static struct regulator_ops lp3972_dcdc_ops = { .list_voltage = regulator_list_voltage_table, + .map_voltage = regulator_map_voltage_ascend, .is_enabled = lp3972_dcdc_is_enabled, .enable = lp3972_dcdc_enable, .disable = lp3972_dcdc_disable,