Skip to content

Commit 6487a80

Browse files
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/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 8ae79be commit 6487a80

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

include/linux/rtc.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@ static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs)
3434
return rtc_tm_to_time64(lhs) - rtc_tm_to_time64(rhs);
3535
}
3636

37-
static inline void rtc_time_to_tm(unsigned long time, struct rtc_time *tm)
38-
{
39-
rtc_time64_to_tm(time, tm);
40-
}
41-
42-
static inline int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time)
43-
{
44-
*time = rtc_tm_to_time64(tm);
45-
46-
return 0;
47-
}
48-
4937
#include <linux/device.h>
5038
#include <linux/seq_file.h>
5139
#include <linux/cdev.h>

0 commit comments

Comments
 (0)