regulator: axp20x: fix LDO2/4 description
authorIcenowy Zheng <icenowy@aosc.io>
Wed, 23 Sep 2020 00:51:42 +0000 (08:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 15:36:31 +0000 (17:36 +0200)
commitfce9400de3406b1e92de490db2b366e73413bf5b
treed6d88214e945071f0ec84451883c56614d36a351
parent2f24ab64b8cc1b039316ae1a6e77c903a8568bdf
regulator: axp20x: fix LDO2/4 description

[ Upstream commit fbb5a79d2fe7b01c6424fbbc04368373b1672d61 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/axp20x-regulator.c