summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/tps65217_bl.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2021-03-12 14:02:40 +0100
committerMark Brown <broonie@kernel.org>2021-03-15 16:42:10 +0100
commit3b6e7088afc919f5b52e4d2de8501ad34d35b09b (patch)
treebd9af781e8a8e8e617b7f1da6fbb54322a00f79b /drivers/video/backlight/tps65217_bl.c
parentregulator: mt6315: Fix off-by-one for .n_voltages (diff)
downloadlinux-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/video/backlight/tps65217_bl.c')
0 files changed, 0 insertions, 0 deletions