Skip to content

Commit 15a1cd2

Browse files
AxelLinbroonie
authored andcommitted
regulator: tps6287x: Fix missing .n_voltages setting
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
1 parent cf27b7d commit 15a1cd2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/regulator/tps6287x-regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ static struct regulator_desc tps6287x_reg = {
119119
.ramp_mask = TPS6287X_CTRL1_VRAMP,
120120
.ramp_delay_table = tps6287x_ramp_table,
121121
.n_ramp_values = ARRAY_SIZE(tps6287x_ramp_table),
122+
.n_voltages = 256,
122123
.linear_ranges = tps6287x_voltage_ranges,
123124
.n_linear_ranges = ARRAY_SIZE(tps6287x_voltage_ranges),
124125
.linear_range_selectors = tps6287x_voltage_range_sel,

0 commit comments

Comments
 (0)