Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mitja Spes and committed by
Alexandre Belloni
5f1b2f77 8a67e931

+1 -1
+1 -1
drivers/rtc/rtc-abx80x.c
··· 28 28 #define ABX8XX_REG_WD 0x07 29 29 30 30 #define ABX8XX_REG_CTRL1 0x10 31 - #define ABX8XX_CTRL_WRITE BIT(1) 31 + #define ABX8XX_CTRL_WRITE BIT(0) 32 32 #define ABX8XX_CTRL_12_24 BIT(6) 33 33 34 34 #define ABX8XX_REG_CFG_KEY 0x1f