rtc: Update interface.c to use y2038-safe time interfaces
authorXunlei Pang <pang.xunlei@linaro.org>
Thu, 22 Jan 2015 02:31:51 +0000 (02:31 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Sat, 24 Jan 2015 01:21:55 +0000 (17:21 -0800)
commitbc10aa93a8853d6dac820696ae9a3e757e19f315
treeb07a5dd4ac66d3567e15baeeadf3935a1b7bf8ab
parent2e0c78ee5ba4d777ecf22c8f40cc968b4308ca88
rtc: Update interface.c to use y2038-safe time interfaces

Currently, interface.c uses y2038 problematic rtc_tm_to_time()
and rtc_time_to_tm(). So replace them with their corresponding
y2038-safe versions: rtc_tm_to_time64() and rtc_time64_to_tm().

Cc: pang.xunlei <pang.xunlei@linaro.org>
Cc: Arnd Bergmann <arnd.bergmann@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/rtc/interface.c