Skip to content

Commit 7c75040

Browse files
AxelLinbroonie
authored andcommitted
regulator: sm5703: Fix missing n_voltages for fixed regulators
Set n_voltages = 1 for fixed regulators. Signed-off-by: Axel Lin <[email protected]> Reviewed-by: Markuss Broks <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c5d5b55 commit 7c75040

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/regulator/sm5703-regulator.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ static const int sm5703_buck_voltagemap[] = {
4242
.type = REGULATOR_VOLTAGE, \
4343
.id = SM5703_USBLDO ## _id, \
4444
.ops = &sm5703_regulator_ops_fixed, \
45+
.n_voltages = 1, \
4546
.fixed_uV = SM5703_USBLDO_MICROVOLT, \
4647
.enable_reg = SM5703_REG_USBLDO12, \
4748
.enable_mask = SM5703_REG_EN_USBLDO ##_id, \
@@ -56,6 +57,7 @@ static const int sm5703_buck_voltagemap[] = {
5657
.type = REGULATOR_VOLTAGE, \
5758
.id = SM5703_VBUS, \
5859
.ops = &sm5703_regulator_ops_fixed, \
60+
.n_voltages = 1, \
5961
.fixed_uV = SM5703_VBUS_MICROVOLT, \
6062
.enable_reg = SM5703_REG_CNTL, \
6163
.enable_mask = SM5703_OPERATION_MODE_MASK, \

0 commit comments

Comments
 (0)