Skip to content

Commit

Permalink
regulator: max8998: Remove wrong set_suspend_[en|dis]able callback se…
Browse files Browse the repository at this point in the history
…ttings

Using the same ops for both [en|dis]able and set_suspend_[en|dis]able
callbacks is actively broken. This patch removes .set_suspend_disable and
.set_suspend_enable callback setting.

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 Jul 9, 2012
1 parent b1a397d commit aa85119
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/regulator/max8998.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,6 @@ static struct regulator_ops max8998_ldo_ops = {
.disable = max8998_ldo_disable,
.get_voltage_sel = max8998_get_voltage_sel,
.set_voltage_sel = max8998_set_voltage_ldo_sel,
.set_suspend_enable = max8998_ldo_enable,
.set_suspend_disable = max8998_ldo_disable,
};

static struct regulator_ops max8998_buck_ops = {
Expand All @@ -473,16 +471,12 @@ static struct regulator_ops max8998_buck_ops = {
.get_voltage_sel = max8998_get_voltage_sel,
.set_voltage_sel = max8998_set_voltage_buck_sel,
.set_voltage_time_sel = max8998_set_voltage_buck_time_sel,
.set_suspend_enable = max8998_ldo_enable,
.set_suspend_disable = max8998_ldo_disable,
};

static struct regulator_ops max8998_others_ops = {
.is_enabled = max8998_ldo_is_enabled,
.enable = max8998_ldo_enable,
.disable = max8998_ldo_disable,
.set_suspend_enable = max8998_ldo_enable,
.set_suspend_disable = max8998_ldo_disable,
};

static struct regulator_desc regulators[] = {
Expand Down

0 comments on commit aa85119

Please sign in to comment.