OSDN Git Service

regulator: s2mps11: Fix wrong calculation of register offset
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Thu, 8 Jan 2015 02:04:07 +0000 (11:04 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 8 Jan 2015 18:16:58 +0000 (18:16 +0000)
commitad26aa6c60974acf3228ed0ade97ba5793093dbe
tree95bf11a06ff8e962ad231b0fc842c52a48704509
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
regulator: s2mps11: Fix wrong calculation of register offset

This patch adds missing registers('BUCK7_SW' & 'LDO29_CTRL'). Since BUCK7 has
1 more register (BUCK7_SW) than others, register offset should
be added one more for which has bigger address than BUCK7 registers.

Fixes: 76b9840b24ae04(regulator: s2mps11: Add support S2MPS13 regulator device)
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: <stable@vger.kernel.org>
drivers/regulator/s2mps11.c
include/linux/mfd/samsung/s2mps13.h