[PATCH] rtc: Remove unused parameters

From: 李哲
Date: Tue Mar 18 2025 - 12:40:13 EST


The second and third parameters are not used, which could
mislead the upper-leevel caller into passing these two
parameters

Signed-off-by: 李哲 <sensor1010@xxxxxxx>
---
drivers/rtc/interface.c | 6 +-----
include/linux/rtc.h | 3 +--
2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c
index aaf76406cd7d..fa36d3b00308 100644
--- a/drivers/rtc/interface.c
+++ b/drivers/rtc/interface.c
@@ -677,12 +677,8 @@ enum hrtimer_restart rtc_pie_update_irq(struct hrtimer *timer)
/**
* rtc_update_irq - Triggered when a RTC interrupt occurs.
* @rtc: the rtc device
- * @num: how many irqs are being reported (usually one)
- * @events: mask of RTC_IRQF with one or more of RTC_PF, RTC_AF, RTC_UF
- * Context: any
*/
-void rtc_update_irq(struct rtc_device *rtc,
- unsigned long num, unsigned long events)
+void rtc_update_irq(struct rtc_device *rtc)
{
if (IS_ERR_OR_NULL(rtc))
return;
diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index 3f4d315aaec9..e7a53295fb24 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -193,8 +193,7 @@ extern int rtc_set_alarm(struct rtc_device *rtc,
struct rtc_wkalrm *alrm);
extern int rtc_initialize_alarm(struct rtc_device *rtc,
struct rtc_wkalrm *alrm);
-extern void rtc_update_irq(struct rtc_device *rtc,
- unsigned long num, unsigned long events);
+extern void rtc_update_irq(struct rtc_device *rtc);

extern struct rtc_device *rtc_class_open(const char *name);
extern void rtc_class_close(struct rtc_device *rtc);
--
2.17.1