rtc: abx80x: fix RTC write bit
authorMitja Spes <mitja@lxnav.com>
Wed, 2 Sep 2015 08:02:29 +0000 (10:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:26:11 +0000 (19:26 +0200)
commit 5f1b2f77646fc0ef2f36fc554f5722a1381d0892 upstream.

Fix RTC write bit as per application manual

Signed-off-by: Mitja Spes <mitja@lxnav.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rtc/rtc-abx80x.c

index 4337c3b..afea84c 100644 (file)
@@ -28,7 +28,7 @@
 #define ABX8XX_REG_WD          0x07
 
 #define ABX8XX_REG_CTRL1       0x10
-#define ABX8XX_CTRL_WRITE      BIT(1)
+#define ABX8XX_CTRL_WRITE      BIT(0)
 #define ABX8XX_CTRL_12_24      BIT(6)
 
 #define ABX8XX_REG_CFG_KEY     0x1f