Commit 311a68a5 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7bcbdbe0
......@@ -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, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment