diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-04-30 13:13:46 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-03 08:07:15 +0200 |
commit | 311a68a51a58bfdead971080d41a34ca565b47a0 (patch) | |
tree | 0e47e91543f6efc919f0cf51646e3c3300394621 /drivers | |
parent | regulator: stm32-pwr: Remove unneeded *desc from struct stm32_pwr_reg (diff) | |
download | linux-311a68a51a58bfdead971080d41a34ca565b47a0.tar.xz linux-311a68a51a58bfdead971080d41a34ca565b47a0.zip |
regulator: stm32-pwr: Remove unneeded .min_uV and .list_volage
For fixed regulator, setting .n_voltages = 1 and .fixed_uV is enough,
no need to set .min_uV and .list_volage.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/regulator/stm32-pwr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/stm32-pwr.c b/drivers/regulator/stm32-pwr.c index 8bd15e4d2cea..e0e627b0106e 100644 --- a/drivers/regulator/stm32-pwr.c +++ b/drivers/regulator/stm32-pwr.c @@ -102,7 +102,6 @@ static int stm32_pwr_reg_disable(struct regulator_dev *rdev) } static const struct regulator_ops stm32_pwr_reg_ops = { - .list_voltage = regulator_list_voltage_linear, .enable = stm32_pwr_reg_enable, .disable = stm32_pwr_reg_disable, .is_enabled = stm32_pwr_reg_is_enabled, @@ -115,7 +114,6 @@ static const struct regulator_ops stm32_pwr_reg_ops = { .of_match = of_match_ptr(_name), \ .n_voltages = 1, \ .type = REGULATOR_VOLTAGE, \ - .min_uV = _volt, \ .fixed_uV = _volt, \ .ops = &stm32_pwr_reg_ops, \ .enable_mask = _en, \ |