projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf27b7d
)
regulator: tps6287x: Fix missing .n_voltages setting
author
Axel Lin
<axel.lin@ingics.com>
Tue, 16 May 2023 08:23:33 +0000
(16:23 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 17 May 2023 01:38:20 +0000
(10:38 +0900)
Otherwise, regulator_list_voltage() will return -EINVAL.
Signed-off-by: Axel Lin <axel.lin@ingics.com
Link:
https://lore.kernel.org/r/20230516082333.466429-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org
drivers/regulator/tps6287x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/tps6287x-regulator.c
b/drivers/regulator/tps6287x-regulator.c
index d7fc82175493f4f07b6052b362246064c6b07088..870e63ce3ff24b6920d1ed7025e85fc40f5b9ab9 100644
(file)
--- a/
drivers/regulator/tps6287x-regulator.c
+++ b/
drivers/regulator/tps6287x-regulator.c
@@
-119,6
+119,7
@@
static struct regulator_desc tps6287x_reg = {
.ramp_mask = TPS6287X_CTRL1_VRAMP,
.ramp_delay_table = tps6287x_ramp_table,
.n_ramp_values = ARRAY_SIZE(tps6287x_ramp_table),
+ .n_voltages = 256,
.linear_ranges = tps6287x_voltage_ranges,
.n_linear_ranges = ARRAY_SIZE(tps6287x_voltage_ranges),
.linear_range_selectors = tps6287x_voltage_range_sel,