From: Alexandre Belloni Date: Mon, 30 Mar 2020 20:15:08 +0000 (+0200) Subject: rtc: remove rtc_time_to_tm and rtc_tm_to_time X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6487a8019b3e9f9d79e5f6ad3ea49f9379209b7e;p=linux.git rtc: remove rtc_time_to_tm and rtc_tm_to_time There are no callers of the 32bit versions of rtc_time conversion functions, drop them. Link: https://lore.kernel.org/r/20200330201510.861217-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni --- diff --git a/include/linux/rtc.h b/include/linux/rtc.h index 23990bd290400..bba3db3f7efa8 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h @@ -34,18 +34,6 @@ static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs) return rtc_tm_to_time64(lhs) - rtc_tm_to_time64(rhs); } -static inline void rtc_time_to_tm(unsigned long time, struct rtc_time *tm) -{ - rtc_time64_to_tm(time, tm); -} - -static inline int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time) -{ - *time = rtc_tm_to_time64(tm); - - return 0; -} - #include #include #include