2017-11-03 17:34:25

by Akshay Bhat

[permalink] [raw]
Subject: [PATCH 1/3] rtc: rx8010: Remove duplicate define

Remove duplicate define for RX8010_YEAR

Signed-off-by: Akshay Bhat <[email protected]>
---
drivers/rtc/rtc-rx8010.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c
index 1ed3403..f948f75 100644
--- a/drivers/rtc/rtc-rx8010.c
+++ b/drivers/rtc/rtc-rx8010.c
@@ -24,7 +24,6 @@
#define RX8010_MDAY 0x14
#define RX8010_MONTH 0x15
#define RX8010_YEAR 0x16
-#define RX8010_YEAR 0x16
#define RX8010_RESV17 0x17
#define RX8010_ALMIN 0x18
#define RX8010_ALHOUR 0x19
--
2.7.4


From 1583474808675472162@xxx Wed Nov 08 05:34:15 +0000 2017
X-GM-THRID: 1583449612564503562
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread


2017-11-03 17:36:21

by Akshay Bhat

[permalink] [raw]
Subject: [PATCH 2/3] rtc: rx8010: Specify correct address for RX8010_RESV31

Define for reserved register 31 had the incorrect address. Specify
the correct address.

Reported-by: Jens-Peter Oswald <[email protected]>
Signed-off-by: Akshay Bhat <[email protected]>
---
drivers/rtc/rtc-rx8010.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c
index f948f75..2e06e5f 100644
--- a/drivers/rtc/rtc-rx8010.c
+++ b/drivers/rtc/rtc-rx8010.c
@@ -35,7 +35,7 @@
#define RX8010_CTRL 0x1F
/* 0x20 to 0x2F are user registers */
#define RX8010_RESV30 0x30
-#define RX8010_RESV31 0x32
+#define RX8010_RESV31 0x31
#define RX8010_IRQ 0x32

#define RX8010_EXT_WADA BIT(3)
--
2.7.4


From 1583607095944689949@xxx Thu Nov 09 16:36:54 +0000 2017
X-GM-THRID: 1583607095944689949
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread