regulator: axp20x: Fix AXP22x ELDO2 regulator enable bitmask
authorChen-Yu Tsai <wens@csie.org>
Wed, 18 Dec 2019 04:47:20 +0000 (12:47 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 18 Dec 2019 20:03:42 +0000 (20:03 +0000)
commitf40ddaa059fdfb472e3aeb733c6220d8e0633a47
tree0ff566972a4ab4318a9d8c792f900ee816b500b7
parent62a1923cc8fe095912e6213ed5de27abbf1de77e
regulator: axp20x: Fix AXP22x ELDO2 regulator enable bitmask

A copy-paste error was introduced when bitmasks were converted to
macros, incorrectly setting the enable bitmask for ELDO2 to the one
for ELDO1 for the AXP22x units.

Fix it by using the correct macro.

On affected boards, ELDO1 and/or ELDO2 are used to power the camera,
which is currently unsupported.

Fixes: db4a555f7c4c ("regulator: axp20x: use defines for masks")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20191218044720.21990-1-wens@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c