]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: pfuze100: Fix off-by-one for max_register setting
authorAxel Lin <axel.lin@ingics.com>
Thu, 1 Aug 2013 11:59:56 +0000 (19:59 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 2 Aug 2013 10:29:00 +0000 (11:29 +0100)
commitc7b066d90b9c155113916f6b00ef5ae2dcac1461
tree90878bb03358c009e9f60d99694aeca6d144554f
parent4384332bb0b67b38ee571479b0e92dc0c095f835
regulator: pfuze100: Fix off-by-one for max_register setting

max_register should be register count - 1.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Robin Gong <b38343@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/pfuze100-regulator.c