projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5d5b55
)
regulator: sm5703: Fix missing n_voltages for fixed regulators
author
Axel Lin
<axel.lin@ingics.com>
Sun, 9 Apr 2023 02:55:29 +0000
(10:55 +0800)
committer
Mark Brown
<broonie@kernel.org>
Tue, 11 Apr 2023 11:41:59 +0000
(12:41 +0100)
Set n_voltages = 1 for fixed regulators.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Markuss Broks <markuss.broks@gmail.com>
Link:
https://lore.kernel.org/r/20230409025529.241699-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/sm5703-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/sm5703-regulator.c
b/drivers/regulator/sm5703-regulator.c
index 05ad28fc4da8cd4222af726bf1b18c44a2c029bb..229df7170792ce25cd1d4670243a93ea1898fc81 100644
(file)
--- a/
drivers/regulator/sm5703-regulator.c
+++ b/
drivers/regulator/sm5703-regulator.c
@@
-42,6
+42,7
@@
static const int sm5703_buck_voltagemap[] = {
.type = REGULATOR_VOLTAGE, \
.id = SM5703_USBLDO ## _id, \
.ops = &sm5703_regulator_ops_fixed, \
+ .n_voltages = 1, \
.fixed_uV = SM5703_USBLDO_MICROVOLT, \
.enable_reg = SM5703_REG_USBLDO12, \
.enable_mask = SM5703_REG_EN_USBLDO ##_id, \
@@
-56,6
+57,7
@@
static const int sm5703_buck_voltagemap[] = {
.type = REGULATOR_VOLTAGE, \
.id = SM5703_VBUS, \
.ops = &sm5703_regulator_ops_fixed, \
+ .n_voltages = 1, \
.fixed_uV = SM5703_VBUS_MICROVOLT, \
.enable_reg = SM5703_REG_CNTL, \
.enable_mask = SM5703_OPERATION_MODE_MASK, \