* [PATCH] rtc: Remove unused parameters
@ 2025-03-18 16:33 李哲
0 siblings, 0 replies; only message in thread
From: 李哲 @ 2025-03-18 16:33 UTC (permalink / raw)
To: alexandre.belloni; +Cc: linux-rtc, linux-kernel, 李哲
The second and third parameters are not used, which could
mislead the upper-leevel caller into passing these two
parameters
Signed-off-by: 李哲 <sensor1010@163.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-18 16:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-18 16:33 [PATCH] rtc: Remove unused parameters 李哲
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®