Skip to content

Commit

Permalink
regulator: twl: Remove get_voltage implementation for single voltage …
Browse files Browse the repository at this point in the history
…regulators

This is not required after commit f7df20e
"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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Aug 28, 2012
1 parent 9c7fde4 commit f9cfbde
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions drivers/regulator/twl-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,18 +624,9 @@ static int twlfixed_list_voltage(struct regulator_dev *rdev, unsigned index)
return info->min_mV * 1000;
}

static int twlfixed_get_voltage(struct regulator_dev *rdev)
{
struct twlreg_info *info = rdev_get_drvdata(rdev);

return info->min_mV * 1000;
}

static struct regulator_ops twl4030fixed_ops = {
.list_voltage = twlfixed_list_voltage,

.get_voltage = twlfixed_get_voltage,

.enable = twl4030reg_enable,
.disable = twl4030reg_disable,
.is_enabled = twl4030reg_is_enabled,
Expand All @@ -648,8 +639,6 @@ static struct regulator_ops twl4030fixed_ops = {
static struct regulator_ops twl6030fixed_ops = {
.list_voltage = twlfixed_list_voltage,

.get_voltage = twlfixed_get_voltage,

.enable = twl6030reg_enable,
.disable = twl6030reg_disable,
.is_enabled = twl6030reg_is_enabled,
Expand Down

0 comments on commit f9cfbde

Please sign in to comment.