summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>2021-04-15 16:37:01 +0800
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2021-04-17 11:21:04 +0200
commit9b9310445f5a6741399ebe2ba08137fecd7f73f9 (patch)
treea1774207ee1911c14f5daba123f8bce08831ae3d /drivers
parent7fcb86185978661c9188397d474f90364745b8d9 (diff)
downloadlinux-9b9310445f5a6741399ebe2ba08137fecd7f73f9.tar.bz2
rtc: ds1511: 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@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/1618475821-102974-1-git-send-email-jiapeng.chong@linux.alibaba.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-ds1511.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c
index bda884333082..1109cad83838 100644
--- a/drivers/rtc/rtc-ds1511.c
+++ b/drivers/rtc/rtc-ds1511.c
@@ -104,12 +104,6 @@ rtc_write(uint8_t val, uint32_t reg)
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)
{