Skip to content

Commit

Permalink
regulator: tps6287x: Fix missing .n_voltages setting
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AxelLin authored and broonie committed May 17, 2023
1 parent cf27b7d commit 15a1cd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/tps6287x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 15a1cd2

Please sign in to comment.