]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb0002a4118ca7d06fc2c343beb9be922f5b7c4ea
tree82698af23cfb0935f043ef3360f38abc0e4c4495
parent4d9572acfa8d19dc13d82d09f136270273a708fc
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: 6a624ed1dbd9 ("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