Skip to content

Commit 88348ef

Browse files
AxelLinbroonie
authored andcommitted
regulator: ab3100: Remove get_voltage implementation for regulator_ops_fixed
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>
1 parent b571dc3 commit 88348ef

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎drivers/regulator/ab3100.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,17 +347,11 @@ static int ab3100_get_voltage_regulator_external(struct regulator_dev *reg)
347347
return abreg->plfdata->external_voltage;
348348
}
349349

350-
static int ab3100_get_fixed_voltage_regulator(struct regulator_dev *reg)
351-
{
352-
return reg->desc->min_uV;
353-
}
354-
355350
static struct regulator_ops regulator_ops_fixed = {
356351
.list_voltage = regulator_list_voltage_linear,
357352
.enable = ab3100_enable_regulator,
358353
.disable = ab3100_disable_regulator,
359354
.is_enabled = ab3100_is_enabled_regulator,
360-
.get_voltage = ab3100_get_fixed_voltage_regulator,
361355
};
362356

363357
static struct regulator_ops regulator_ops_variable = {

0 commit comments

Comments
 (0)