regulator: stm32-pwr: Remove unneeded .min_uV and .list_volage
authorAxel Lin <axel.lin@ingics.com>
Tue, 30 Apr 2019 11:13:46 +0000 (19:13 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2019 06:07:15 +0000 (15:07 +0900)
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>
drivers/regulator/stm32-pwr.c

index 8bd15e4d2cea1ba69d1b40873bf6b910ffec11eb..e0e627b0106e06ed98313a67a98a4d46ac26eca5 100644 (file)
@@ -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, \