]> 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)
commit53a7cd364e63aa632145eba75715d2f6ff31fa71
tree0ff566972a4ab4318a9d8c792f900ee816b500b7
parent4bafa3ec9e226b96e6e04578529b6205cf0fa6d9
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: 6a624ed1dbd9 ("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