diff mbox series

rtc: mt6397: drop unused defines

Message ID 20250303223637.1135362-1-alexandre.belloni@bootlin.com (mailing list archive)
State New
Headers show
Series rtc: mt6397: drop unused defines | expand

Commit Message

Alexandre Belloni March 3, 2025, 10:36 p.m. UTC
From: Alexandre Belloni <alexandre.belloni@bootlin.com>

RTC_NUM_YEARS has never been used, the other defines are not used since
commit 34bbdc12d04e ("rtc: mt6359: Add RTC hardware range and add support
for start-year")

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 include/linux/mfd/mt6397/rtc.h | 5 -----
 1 file changed, 5 deletions(-)

Comments

AngeloGioacchino Del Regno March 4, 2025, 8:33 a.m. UTC | #1
Il 03/03/25 23:36, alexandre.belloni@bootlin.com ha scritto:
> From: Alexandre Belloni <alexandre.belloni@bootlin.com>
> 
> RTC_NUM_YEARS has never been used, the other defines are not used since
> commit 34bbdc12d04e ("rtc: mt6359: Add RTC hardware range and add support
> for start-year")
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
diff mbox series

Patch

diff --git a/include/linux/mfd/mt6397/rtc.h b/include/linux/mfd/mt6397/rtc.h
index 068ae1c0f0e8..27883af44f87 100644
--- a/include/linux/mfd/mt6397/rtc.h
+++ b/include/linux/mfd/mt6397/rtc.h
@@ -60,11 +60,6 @@ 
 #define RTC_PDN2               0x002e
 #define RTC_PDN2_PWRON_ALARM   BIT(4)
 
-#define RTC_MIN_YEAR           1968
-#define RTC_BASE_YEAR          1900
-#define RTC_NUM_YEARS          128
-#define RTC_MIN_YEAR_OFFSET    (RTC_MIN_YEAR - RTC_BASE_YEAR)
-
 #define MTK_RTC_POLL_DELAY_US  10
 #define MTK_RTC_POLL_TIMEOUT   (jiffies_to_usecs(HZ))