]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb93e57220eed810d8a4cee128b38f2b6a94b57a
tree0ff566972a4ab4318a9d8c792f900ee816b500b7
parent5b362c7439cec46880bd6bbe73f7b0c08f0da9b2
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: bf1d7efd13cb ("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