]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: mt6315: Fix off-by-one for .n_voltages
authorAxel Lin <axel.lin@ingics.com>
Thu, 11 Mar 2021 02:05:58 +0000 (10:05 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 11 Mar 2021 13:23:21 +0000 (13:23 +0000)
commit7fc6f1846890ce88c848b62de7f85a19fb44bb24
tree5d68a83409333e8850c0b03918273d358b6823a3
parenta8d0f9607b151cfa0ceb38e0eefe30f530c85c18
regulator: mt6315: Fix off-by-one for .n_voltages

The valid selector is 0 ~ 0xbf, so the .n_voltages should be 0xc0.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210311020558.579597-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6315-regulator.c