regulator: axp20x: Fix GPIO LDO enable value for AXP22x
authorChen-Yu Tsai <wens@csie.org>
Tue, 22 Dec 2015 09:08:06 +0000 (17:08 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 23 Dec 2015 00:05:31 +0000 (00:05 +0000)
The enable/disable values for GPIO LDOs are reversed. It seems no one
noticed as AXP22x support was introduced recently, and no one was using
the GPIO LDOs, either because no designs actually use them or board
support hasn't caught up.

Fixes: 1b82b4e4f954 ("regulator: axp20x: Add support for AXP22X regulators")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/regulator/axp20x-regulator.c

index 35de22fdb7a06d96e0bb7bdf3e199165b5b83cc1..f2e1a39ce0f35258447093fd84223fc25b087e29 100644 (file)
@@ -27,8 +27,8 @@
 #define AXP20X_IO_ENABLED              0x03
 #define AXP20X_IO_DISABLED             0x07
 
-#define AXP22X_IO_ENABLED              0x04
-#define AXP22X_IO_DISABLED             0x03
+#define AXP22X_IO_ENABLED              0x03
+#define AXP22X_IO_DISABLED             0x04
 
 #define AXP20X_WORKMODE_DCDC2_MASK     BIT(2)
 #define AXP20X_WORKMODE_DCDC3_MASK     BIT(1)
This page took 0.025604 seconds and 5 git commands to generate.