[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1618475821-102974-1-git-send-email-jiapeng.chong@linux.alibaba.com>
Date: Thu, 15 Apr 2021 16:37:01 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: a.zummo@...ertech.it
Cc: alexandre.belloni@...tlin.com, linux-rtc@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Subject: [PATCH] rtc: remove unused function
Fix the following clang warning:
drivers/rtc/rtc-ds1511.c:108:1: warning: unused function
'rtc_write_alarm' [-Wunused-function].
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
drivers/rtc/rtc-ds1511.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c
index bda8843..1109cad 100644
--- a/drivers/rtc/rtc-ds1511.c
+++ b/drivers/rtc/rtc-ds1511.c
@@ -104,12 +104,6 @@ struct rtc_plat_data {
writeb(val, ds1511_base + (reg * reg_spacing));
}
-static inline void
-rtc_write_alarm(uint8_t val, enum ds1511reg reg)
-{
- rtc_write((val | 0x80), reg);
-}
-
static noinline uint8_t
rtc_read(enum ds1511reg reg)
{
--
1.8.3.1
Powered by blists - more mailing lists