diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-03-12 14:02:40 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-15 16:42:10 +0100 |
commit | 3b6e7088afc919f5b52e4d2de8501ad34d35b09b (patch) | |
tree | bd9af781e8a8e8e617b7f1da6fbb54322a00f79b /drivers/fpga/fpga-bridge.c | |
parent | regulator: mt6315: Fix off-by-one for .n_voltages (diff) | |
download | linux-3b6e7088afc919f5b52e4d2de8501ad34d35b09b.tar.xz linux-3b6e7088afc919f5b52e4d2de8501ad34d35b09b.zip |
regulator: bd9571mwv: Fix AVS and DVFS voltage range
According to Table 30 ("DVFS_MoniVDAC [6:0] Setting Table") in the
BD9571MWV-M Datasheet Rev. 002, the valid voltage range is 600..1100 mV
(settings 0x3c..0x6e). While the lower limit is taken into account (by
setting regulator_desc.linear_min_sel to 0x3c), the upper limit is not.
Fix this by reducing regulator_desc.n_voltages from 0x80 to 0x6f.
Fixes: e85c5a153fe237f2 ("regulator: Add ROHM BD9571MWV-M PMIC regulator driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20210312130242.3390038-2-geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions