Skip to contentSkip to conversation

rtc: Remove unused parameters

PATCH New 李哲 1 participant 1 message Mar 18, 2025 Real time clock (RTC)

lore
Share & tools
lore

李哲

author
#0 lore raw

PATCH 1/1 rtc: Remove unused parameters

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

---
 drivers/rtc/interface.c | 6 +-----
 include/linux/rtc.h     | 3 +--
 2 files changed, 2 insertions(+), 7 deletions(-)
drivers/rtc/interface.c +1 -5
index aaf76406cd7d..fa36d3b00308 100644
@@ -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;
include/linux/rtc.h +1 -2
index 3f4d315aaec9..e7a53295fb24 100644
@@ -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);
Signature · 1 line
2.17.1