mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
regulator: tps6287x: Fix missing .n_voltages setting
Otherwise, regulator_list_voltage() will return -EINVAL. Signed-off-by: Axel Lin <[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user