diff options
author | Axel Lin <axel.lin@ingics.com> | 2012-12-22 00:31:19 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-01 03:00:00 -0500 |
commit | b3816d50439245d888798ee620da1e27cbf86c66 (patch) | |
tree | e2bb97b2d0cb9809fded498e0f79e2d9fdc9257e | |
parent | 2730fd82cbb922e6be8df08ba32c21be41757d3d (diff) |
regulator: twl: Convert twl[6030|4030]fixed_ops to regulator_list_voltage_linear
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | drivers/regulator/twl-regulator.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index 74508cc62d67..b68df81b6f8f 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c | |||
@@ -616,18 +616,8 @@ static struct regulator_ops twl6030ldo_ops = { | |||
616 | 616 | ||
617 | /*----------------------------------------------------------------------*/ | 617 | /*----------------------------------------------------------------------*/ |
618 | 618 | ||
619 | /* | ||
620 | * Fixed voltage LDOs don't have a VSEL field to update. | ||
621 | */ | ||
622 | static int twlfixed_list_voltage(struct regulator_dev *rdev, unsigned index) | ||
623 | { | ||
624 | struct twlreg_info *info = rdev_get_drvdata(rdev); | ||
625 | |||
626 | return info->min_mV * 1000; | ||
627 | } | ||
628 | |||
629 | static struct regulator_ops twl4030fixed_ops = { | 619 | static struct regulator_ops twl4030fixed_ops = { |
630 | .list_voltage = twlfixed_list_voltage, | 620 | .list_voltage = regulator_list_voltage_linear, |
631 | 621 | ||
632 | .enable = twl4030reg_enable, | 622 | .enable = twl4030reg_enable, |
633 | .disable = twl4030reg_disable, | 623 | .disable = twl4030reg_disable, |
@@ -639,7 +629,7 @@ static struct regulator_ops twl4030fixed_ops = { | |||
639 | }; | 629 | }; |
640 | 630 | ||
641 | static struct regulator_ops twl6030fixed_ops = { | 631 | static struct regulator_ops twl6030fixed_ops = { |
642 | .list_voltage = twlfixed_list_voltage, | 632 | .list_voltage = regulator_list_voltage_linear, |
643 | 633 | ||
644 | .enable = twl6030reg_enable, | 634 | .enable = twl6030reg_enable, |
645 | .disable = twl6030reg_disable, | 635 | .disable = twl6030reg_disable, |
@@ -945,6 +935,7 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \ | |||
945 | .ops = &operations, \ | 935 | .ops = &operations, \ |
946 | .type = REGULATOR_VOLTAGE, \ | 936 | .type = REGULATOR_VOLTAGE, \ |
947 | .owner = THIS_MODULE, \ | 937 | .owner = THIS_MODULE, \ |
938 | .min_uV = mVolts * 1000, \ | ||
948 | .enable_time = turnon_delay, \ | 939 | .enable_time = turnon_delay, \ |
949 | }, \ | 940 | }, \ |
950 | } | 941 | } |