Skip to content

Commit 311a68a

Browse files
AxelLinbroonie
authored andcommitted
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 7bcbdbe commit 311a68a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/regulator/stm32-pwr.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ static int stm32_pwr_reg_disable(struct regulator_dev *rdev)
102102
}
103103

104104
static const struct regulator_ops stm32_pwr_reg_ops = {
105-
.list_voltage = regulator_list_voltage_linear,
106105
.enable = stm32_pwr_reg_enable,
107106
.disable = stm32_pwr_reg_disable,
108107
.is_enabled = stm32_pwr_reg_is_enabled,
@@ -115,7 +114,6 @@ static const struct regulator_ops stm32_pwr_reg_ops = {
115114
.of_match = of_match_ptr(_name), \
116115
.n_voltages = 1, \
117116
.type = REGULATOR_VOLTAGE, \
118-
.min_uV = _volt, \
119117
.fixed_uV = _volt, \
120118
.ops = &stm32_pwr_reg_ops, \
121119
.enable_mask = _en, \

0 commit comments

Comments
 (0)