regulator: lochnagar: Fix n_voltages setting for VDDCORE
With current n_voltages setting, regulator_list_voltage will return -EINVAL when selector >=57. The highest selector is 0x41, so the n_voltages should be 0x41+1, i.e. 66. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
16c8a59574
commit
9df3bb319c
|
@ -194,7 +194,7 @@ static const struct regulator_desc lochnagar_regulators[] = {
|
|||
.name = "VDDCORE",
|
||||
.supply_name = "SYSVDD",
|
||||
.type = REGULATOR_VOLTAGE,
|
||||
.n_voltages = 57,
|
||||
.n_voltages = 66,
|
||||
.ops = &lochnagar_vddcore_ops,
|
||||
|
||||
.id = LOCHNAGAR_VDDCORE,
|
||||
|
|
Loading…
Reference in New Issue