regulator: axp20x: fix LDO2/4 description
authorIcenowy Zheng <icenowy@aosc.io>
Wed, 23 Sep 2020 00:51:42 +0000 (08:51 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 23 Sep 2020 16:06:27 +0000 (17:06 +0100)
commitfbb5a79d2fe7b01c6424fbbc04368373b1672d61
tree82698af23cfb0935f043ef3360f38abc0e4c4495
parent59ae97a7a9e1499c2070e29841d1c4be4ae2994a
regulator: axp20x: fix LDO2/4 description

Currently we wrongly set the mask of value of LDO2/4 both to the mask of
LDO2, and the LDO4 voltage configuration is left untouched. This leads
to conflict when LDO2/4 are both in use.

Fix this issue by setting different vsel_mask to both regulators.

Fixes: db4a555f7c4c ("regulator: axp20x: use defines for masks")
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Link: https://lore.kernel.org/r/20200923005142.147135-1-icenowy@aosc.io
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c