diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-08-09 21:37:09 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-28 14:00:28 -0400 |
commit | f9cfbde723ba89b7bf7d1ec0b8adeea0c3c4a091 (patch) | |
tree | eb9f81d3e38e1cd69144b98908b570ed669ee5cf /drivers/regulator | |
parent | 9c7fde4e80072fb5db4f60f1b16b8178198ba4ea (diff) |
regulator: twl: Remove get_voltage implementation for single voltage regulators
This is not required after commit f7df20ec
"regulator: core: Use list_voltage() to read single voltage regulators"
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/twl-regulator.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index 89d447dd5830..5ce841087447 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c | |||
@@ -624,18 +624,9 @@ static int twlfixed_list_voltage(struct regulator_dev *rdev, unsigned index) | |||
624 | return info->min_mV * 1000; | 624 | return info->min_mV * 1000; |
625 | } | 625 | } |
626 | 626 | ||
627 | static int twlfixed_get_voltage(struct regulator_dev *rdev) | ||
628 | { | ||
629 | struct twlreg_info *info = rdev_get_drvdata(rdev); | ||
630 | |||
631 | return info->min_mV * 1000; | ||
632 | } | ||
633 | |||
634 | static struct regulator_ops twl4030fixed_ops = { | 627 | static struct regulator_ops twl4030fixed_ops = { |
635 | .list_voltage = twlfixed_list_voltage, | 628 | .list_voltage = twlfixed_list_voltage, |
636 | 629 | ||
637 | .get_voltage = twlfixed_get_voltage, | ||
638 | |||
639 | .enable = twl4030reg_enable, | 630 | .enable = twl4030reg_enable, |
640 | .disable = twl4030reg_disable, | 631 | .disable = twl4030reg_disable, |
641 | .is_enabled = twl4030reg_is_enabled, | 632 | .is_enabled = twl4030reg_is_enabled, |
@@ -648,8 +639,6 @@ static struct regulator_ops twl4030fixed_ops = { | |||
648 | static struct regulator_ops twl6030fixed_ops = { | 639 | static struct regulator_ops twl6030fixed_ops = { |
649 | .list_voltage = twlfixed_list_voltage, | 640 | .list_voltage = twlfixed_list_voltage, |
650 | 641 | ||
651 | .get_voltage = twlfixed_get_voltage, | ||
652 | |||
653 | .enable = twl6030reg_enable, | 642 | .enable = twl6030reg_enable, |
654 | .disable = twl6030reg_disable, | 643 | .disable = twl6030reg_disable, |
655 | .is_enabled = twl6030reg_is_enabled, | 644 | .is_enabled = twl6030reg_is_enabled, |