]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
regulator: rc5t583: Fix off-by-one valid range checking for selector
authorAxel Lin <axel.lin@gmail.com>
Wed, 4 Apr 2012 14:38:09 +0000 (22:38 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 5 Apr 2012 10:02:44 +0000 (11:02 +0100)
commit9cc7a453b637d8c1f628f9873204ff55d7aa664c
treea1df0bf9a5828e1f72ff4e03b053d88b6f7cbf21
parent7eb6444fc33bfe7bcd05533de86a1dc4e1852d71
regulator: rc5t583: Fix off-by-one valid range checking for selector

The valid selector should be 0 ... nsteps-1.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/rc5t583-regulator.c