regualtor: pfuze100: correct sw1a/sw2 on pfuze3000
authorRobin Gong <yibin.gong@nxp.com>
Sun, 14 Jun 2020 21:54:08 +0000 (05:54 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 15 Jun 2020 14:39:53 +0000 (15:39 +0100)
commit6f1cf5257acc6e6242ddf2f52bc7912aed77b79f
treeff3cfc690d447056a7202f14db8f8f242a164543
parent92919679d31721381e3c376488477efe49b915f3
regualtor: pfuze100: correct sw1a/sw2 on pfuze3000

PFUZE100_SWB_REG is not proper for sw1a/sw2, because enable_mask/enable_reg
is not correct. On PFUZE3000, sw1a/sw2 should be the same as sw1a/sw2 on
pfuze100 except that voltages are not linear, so add new PFUZE3000_SW_REG
and pfuze3000_sw_regulator_ops which like the non-linear PFUZE100_SW_REG
and pfuze100_sw_regulator_ops.

Fixes: 1dced996ee70 ("regulator: pfuze100: update voltage setting for pfuze3000 sw1a")
Reported-by: Christophe Meynard <Christophe.Meynard@ign.fr>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Link: https://lore.kernel.org/r/1592171648-8752-1-git-send-email-yibin.gong@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pfuze100-regulator.c