Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Axel Lin and committed by
Mark Brown
311a68a5 7bcbdbe0

-2
-2
drivers/regulator/stm32-pwr.c
··· 102 102 } 103 103 104 104 static const struct regulator_ops stm32_pwr_reg_ops = { 105 - .list_voltage = regulator_list_voltage_linear, 106 105 .enable = stm32_pwr_reg_enable, 107 106 .disable = stm32_pwr_reg_disable, 108 107 .is_enabled = stm32_pwr_reg_is_enabled, ··· 114 115 .of_match = of_match_ptr(_name), \ 115 116 .n_voltages = 1, \ 116 117 .type = REGULATOR_VOLTAGE, \ 117 - .min_uV = _volt, \ 118 118 .fixed_uV = _volt, \ 119 119 .ops = &stm32_pwr_reg_ops, \ 120 120 .enable_mask = _en, \