regulator: tps6524x: Use regulator_map_voltage_ascend
authorAxel Lin <axel.lin@ingics.com>
Fri, 26 Apr 2013 06:25:52 +0000 (14:25 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 26 Apr 2013 15:32:05 +0000 (16:32 +0100)
All regulators have ascendant voltage list in this driver.
Use regulator_map_voltage_ascend for them.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps6524x-regulator.c

index 843ee0a9bb92ce2a23e7a2209590b99cfa13e76c..18b67d28d60b3d0c684497e52b1c2172a4a2fcc0 100644 (file)
@@ -572,6 +572,7 @@ static struct regulator_ops regulator_ops = {
        .get_voltage_sel        = get_voltage_sel,
        .set_voltage_sel        = set_voltage_sel,
        .list_voltage           = regulator_list_voltage_table,
+       .map_voltage            = regulator_map_voltage_ascend,
        .set_current_limit      = set_current_limit,
        .get_current_limit      = get_current_limit,
 };