2021-04-15 08:39:20

by Jiapeng Chong

[permalink] [raw]
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 <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
---
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


2021-04-16 23:16:32

by Alexandre Belloni

[permalink] [raw]
Subject: Re: [PATCH] rtc: remove unused function

On Thu, 15 Apr 2021 16:37:01 +0800, Jiapeng Chong wrote:
> Fix the following clang warning:
>
> drivers/rtc/rtc-ds1511.c:108:1: warning: unused function
> 'rtc_write_alarm' [-Wunused-function].

Applied, thanks!

[1/1] rtc: remove unused function
commit: ef062a45ec9c2b6d15ddd9f76f897219334c7cd2

Best regards,
--
Alexandre Belloni <[email protected]>