regulator: max8997: Remove set_voltage_time_sel setting for max8997_ldo_ops
max8997_set_voltage_ldobuck_time_sel() returns 0 for all LDOs. Thus remove set_voltage_time_sel setting for max8997_ldo_ops. max8997_set_voltage_ldobuck_time_sel() is only used for max8997_buck_ops now, rename it to max8997_set_voltage_buck_time_sel(). Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
a49f0d1ea3
commit
24bd410905
|
@ -523,7 +523,7 @@ static int max8997_set_voltage_ldobuck(struct regulator_dev *rdev,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int max8997_set_voltage_ldobuck_time_sel(struct regulator_dev *rdev,
|
||||
static int max8997_set_voltage_buck_time_sel(struct regulator_dev *rdev,
|
||||
unsigned int old_selector,
|
||||
unsigned int new_selector)
|
||||
{
|
||||
|
@ -801,7 +801,6 @@ static struct regulator_ops max8997_ldo_ops = {
|
|||
.disable = max8997_reg_disable,
|
||||
.get_voltage_sel = max8997_get_voltage_sel,
|
||||
.set_voltage = max8997_set_voltage_ldobuck,
|
||||
.set_voltage_time_sel = max8997_set_voltage_ldobuck_time_sel,
|
||||
.set_suspend_disable = max8997_reg_disable_suspend,
|
||||
};
|
||||
|
||||
|
@ -812,7 +811,7 @@ static struct regulator_ops max8997_buck_ops = {
|
|||
.disable = max8997_reg_disable,
|
||||
.get_voltage_sel = max8997_get_voltage_sel,
|
||||
.set_voltage = max8997_set_voltage_buck,
|
||||
.set_voltage_time_sel = max8997_set_voltage_ldobuck_time_sel,
|
||||
.set_voltage_time_sel = max8997_set_voltage_buck_time_sel,
|
||||
.set_suspend_disable = max8997_reg_disable_suspend,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue