]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rtc: mt6397: drop unused defines
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 3 Mar 2025 22:36:37 +0000 (23:36 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 1 Apr 2025 10:03:39 +0000 (12:03 +0200)
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")

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20250303223637.1135362-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
include/linux/mfd/mt6397/rtc.h

index 068ae1c0f0e8e9a43c11309b44f11b41d15cfe50..27883af44f8752acf7e3d37e47a4783ae4cf96a0 100644 (file)
 #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))