From: 李哲 <sensor1010@163.com>
To: alexandre.belloni@bootlin.com
Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org,
李哲 <sensor1010@163.com>
Subject: [PATCH] rtc: Remove unused parameters
Date: Tue, 18 Mar 2025 09:33:58 -0700 [thread overview]
Message-ID: <20250318163358.2524-1-sensor1010@163.com> (raw)
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
reply other threads:[~2025-03-18 16:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250318163358.2524-1-sensor1010@163.com \
--to=sensor1010@163.com \
--cc=alexandre.belloni@bootlin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®