projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb9bb7b
)
rtc: pm8xxx: drop unused register defines
author
Johan Hovold
<johan+linaro@kernel.org>
Thu, 2 Feb 2023 15:54:32 +0000
(16:54 +0100)
committer
Alexandre Belloni
<alexandre.belloni@bootlin.com>
Thu, 9 Feb 2023 22:23:36 +0000
(23:23 +0100)
Drop the original register defines which have been unused since commit
c8d523a4b053
("drivers/rtc/rtc-pm8xxx.c: rework to support pm8941 rtc").
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: David Collins <quic_collinsd@quicinc.com>
Link:
https://lore.kernel.org/r/20230202155448.6715-7-johan+linaro@kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pm8xxx.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-pm8xxx.c
b/drivers/rtc/rtc-pm8xxx.c
index dc7e659cbb2aa04c764b90a447d3904b15144ff4..90027a7cfb1285768a56a0923a7dda8c2675d781 100644
(file)
--- a/
drivers/rtc/rtc-pm8xxx.c
+++ b/
drivers/rtc/rtc-pm8xxx.c
@@
-12,12
+12,6
@@
#include <linux/slab.h>
#include <linux/spinlock.h>
-/* RTC Register offsets from RTC CTRL REG */
-#define PM8XXX_ALARM_CTRL_OFFSET 0x01
-#define PM8XXX_RTC_WRITE_OFFSET 0x02
-#define PM8XXX_RTC_READ_OFFSET 0x06
-#define PM8XXX_ALARM_RW_OFFSET 0x0A
-
/* RTC_CTRL register bit fields */
#define PM8xxx_RTC_ENABLE BIT(7)
#define PM8xxx_RTC_ALARM_CLEAR BIT(0)