regulator: lochnagar: Fix n_voltages setting for VDDCORE
authorAxel Lin <axel.lin@ingics.com>
Tue, 29 Jan 2019 03:01:56 +0000 (11:01 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 7 Feb 2019 14:13:07 +0000 (14:13 +0000)
commit9df3bb319c449c6723c2c2a1c78db45301fd8669
tree06035f11a56856ee6665c4b3f9c132f297b3507f
parent16c8a595740035c4a7ede608a60b4a59f67b76e6
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>
drivers/regulator/lochnagar-regulator.c