Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1685623 > unrolled thread

[PATCH] rtc: Remove wrong deprecation comment

Started byAlexandre Belloni <alexandre.belloni@free-electrons.com>
First post2017-07-12 10:30 +0200
Last post2017-07-12 10:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] rtc: Remove wrong deprecation comment Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-07-12 10:30 +0200

#1685623 — [PATCH] rtc: Remove wrong deprecation comment

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2017-07-12 10:30 +0200
Subject[PATCH] rtc: Remove wrong deprecation comment
Message-ID<u2lbY-5M9-9@gated-at.bofh.it>
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: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 include/linux/rtc.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index b693adac853b..deb21a32ec43 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -32,17 +32,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);
 }
 
-/**
- * Deprecated. Use rtc_time64_to_tm().
- */
 static inline void rtc_time_to_tm(unsigned long time, struct rtc_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)
 {
 	*time = rtc_tm_to_time64(tm);
-- 
2.13.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web