Skip to content

Commit c692905

Browse files
vwaxbroonie
authored andcommitted
regulator: tps6287x: Fix n_voltages
There are 256 possible voltage settings for each range, not 256 possible voltage settings in total. Fixes: 15a1cd2 ("regulator: tps6287x: Fix missing .n_voltages setting") Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com Link: https://lore.kernel.org/r/20230829-tps-voltages-v1-1-7ba4f958a194@axis.com Signed-off-by: Mark Brown <broonie@kernel.org
1 parent b96c224 commit c692905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/tps6287x-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +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,
122+
.n_voltages = 256 * ARRAY_SIZE(tps6287x_voltage_ranges),
123123
.linear_ranges = tps6287x_voltage_ranges,
124124
.n_linear_ranges = ARRAY_SIZE(tps6287x_voltage_ranges),
125125
.linear_range_selectors_bitfield = tps6287x_voltage_range_sel,

0 commit comments

Comments
 (0)