Commit 40bf6a35 authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: Remove wrong deprecation comment

rtc_time_to_tm and rtc_tm_to_time are not deprecated and make perfect sense
for RTCs that are simple 32bit counters.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 42a6e099
...@@ -33,17 +33,11 @@ static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs) ...@@ -33,17 +33,11 @@ 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); return rtc_tm_to_time64(lhs) - rtc_tm_to_time64(rhs);
} }
/**
* Deprecated. Use rtc_time64_to_tm().
*/
static inline void rtc_time_to_tm(unsigned long time, struct rtc_time *tm) static inline void rtc_time_to_tm(unsigned long time, struct rtc_time *tm)
{ {
rtc_time64_to_tm(time, tm); rtc_time64_to_tm(time, tm);
} }
/**
* Deprecated. Use rtc_tm_to_time64().
*/
static inline int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time) static inline int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time)
{ {
*time = rtc_tm_to_time64(tm); *time = rtc_tm_to_time64(tm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment