aboutsummaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorMitja Spes <mitja@lxnav.com>2015-09-02 10:02:29 +0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-09-05 19:37:31 +0200
commit5f1b2f77646fc0ef2f36fc554f5722a1381d0892 (patch)
tree5ad49037227b39e55e4c4c7c73c9df6a89109e86 /drivers/rtc
parent8a67e93153f03a8d205727c0aeacb5524a414f77 (diff)
rtc: abx80x: fix RTC write bit
Fix RTC write bit as per application manual Cc: stable@vger.kernel.org # 4.1+ Signed-off-by: Mitja Spes <mitja@lxnav.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-abx80x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-abx80x.c b/drivers/rtc/rtc-abx80x.c
index 4337c3bc6ace..afea84c7a155 100644
--- a/drivers/rtc/rtc-abx80x.c
+++ b/drivers/rtc/rtc-abx80x.c
@@ -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