mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
regulator: max8997: Remove empty set_suspend_enable callback implementation
Since commit 8ac0e95
"regulator: core: Support setting suspend_[mode|voltage]
if set_suspend_[en|dis]able is NULL", now the regulator core can properly
handle the case set_suspend_enable callback is NULL.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
c245c087c5
commit
23b7d09a3f
1 changed files with 0 additions and 9 deletions
|
@ -766,11 +766,6 @@ static int max8997_set_voltage_safeout(struct regulator_dev *rdev,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int max8997_reg_enable_suspend(struct regulator_dev *rdev)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int max8997_reg_disable_suspend(struct regulator_dev *rdev)
|
static int max8997_reg_disable_suspend(struct regulator_dev *rdev)
|
||||||
{
|
{
|
||||||
struct max8997_data *max8997 = rdev_get_drvdata(rdev);
|
struct max8997_data *max8997 = rdev_get_drvdata(rdev);
|
||||||
|
@ -806,7 +801,6 @@ static struct regulator_ops max8997_ldo_ops = {
|
||||||
.get_voltage_sel = max8997_get_voltage_sel,
|
.get_voltage_sel = max8997_get_voltage_sel,
|
||||||
.set_voltage = max8997_set_voltage_ldobuck,
|
.set_voltage = max8997_set_voltage_ldobuck,
|
||||||
.set_voltage_time_sel = max8997_set_voltage_ldobuck_time_sel,
|
.set_voltage_time_sel = max8997_set_voltage_ldobuck_time_sel,
|
||||||
.set_suspend_enable = max8997_reg_enable_suspend,
|
|
||||||
.set_suspend_disable = max8997_reg_disable_suspend,
|
.set_suspend_disable = max8997_reg_disable_suspend,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -818,7 +812,6 @@ static struct regulator_ops max8997_buck_ops = {
|
||||||
.get_voltage_sel = max8997_get_voltage_sel,
|
.get_voltage_sel = max8997_get_voltage_sel,
|
||||||
.set_voltage = max8997_set_voltage_buck,
|
.set_voltage = max8997_set_voltage_buck,
|
||||||
.set_voltage_time_sel = max8997_set_voltage_ldobuck_time_sel,
|
.set_voltage_time_sel = max8997_set_voltage_ldobuck_time_sel,
|
||||||
.set_suspend_enable = max8997_reg_enable_suspend,
|
|
||||||
.set_suspend_disable = max8997_reg_disable_suspend,
|
.set_suspend_disable = max8997_reg_disable_suspend,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -827,7 +820,6 @@ static struct regulator_ops max8997_fixedvolt_ops = {
|
||||||
.is_enabled = max8997_reg_is_enabled,
|
.is_enabled = max8997_reg_is_enabled,
|
||||||
.enable = max8997_reg_enable,
|
.enable = max8997_reg_enable,
|
||||||
.disable = max8997_reg_disable,
|
.disable = max8997_reg_disable,
|
||||||
.set_suspend_enable = max8997_reg_enable_suspend,
|
|
||||||
.set_suspend_disable = max8997_reg_disable_suspend,
|
.set_suspend_disable = max8997_reg_disable_suspend,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -838,7 +830,6 @@ static struct regulator_ops max8997_safeout_ops = {
|
||||||
.disable = max8997_reg_disable,
|
.disable = max8997_reg_disable,
|
||||||
.get_voltage_sel = max8997_get_voltage_sel,
|
.get_voltage_sel = max8997_get_voltage_sel,
|
||||||
.set_voltage = max8997_set_voltage_safeout,
|
.set_voltage = max8997_set_voltage_safeout,
|
||||||
.set_suspend_enable = max8997_reg_enable_suspend,
|
|
||||||
.set_suspend_disable = max8997_reg_disable_suspend,
|
.set_suspend_disable = max8997_reg_disable_suspend,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue