aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/class.c
diff options
context:
space:
mode:
authorpang.xunlei <pang.xunlei@linaro.org>2014-11-18 19:15:19 +0800
committerJohn Stultz <john.stultz@linaro.org>2014-11-21 12:00:00 -0800
commitc2c11ae4b6bc03b41720337028b940cbec9e316f (patch)
tree84ea760eb63dc0e9b99eca1ef1564d526b8c82c9 /drivers/rtc/class.c
parenttime: Fixup comments to reflect usage of timespec64 (diff)
downloadlinux-dev-c2c11ae4b6bc03b41720337028b940cbec9e316f.tar.xz
linux-dev-c2c11ae4b6bc03b41720337028b940cbec9e316f.zip
rtc/lib: Provide y2038 safe rtc_tm_to_time()/rtc_time_to_tm() replacement
As part of addressing "y2038 problem" for in-kernel uses, this patch adds safe rtc_tm_to_time64()/rtc_time64_to_tm() respectively using time64_t. After this patch, rtc_tm_to_time() is deprecated and all its call sites will be fixed using corresponding safe versions, it can be removed when having no users. Also change rtc_tm_to_time64() to return time64_t directly instead of just as a parameter like rtc_tm_to_time() does. After this patch, rtc_time_to_tm() is deprecated and all its call sites will be fixed using corresponding safe versions, it can be removed when having no users. In addition, change rtc_tm_to_ktime() and rtc_ktime_to_tm() to use the safe version in passing. Signed-off-by: pang.xunlei <pang.xunlei@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'drivers/rtc/class.c')
0 files changed, 0 insertions, 0 deletions