regulator: as3722: Fix off-by-one n_voltages setting for SDx
authorAxel Lin <axel.lin@ingics.com>
Wed, 2 Oct 2013 12:49:29 +0000 (20:49 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 3 Oct 2013 15:49:34 +0000 (16:49 +0100)
commit5e965704803dcbcbfbf97e8a976b3778b245834b
tree24fe94a8b276f1a9f87314c0ad0ef04c64d242c6
parent43f6fc9542d6c42cc2e5783536ed31d90516c999
regulator: as3722: Fix off-by-one n_voltages setting for SDx

AS3722_SDx_VSEL_MAX means the maximum selecter, the n_voltages should be
AS3722_SDx_VSEL_MAX + 1.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/as3722-regulator.c