diff options
author | Xunlei Pang <pang.xunlei@linaro.org> | 2015-06-12 10:04:09 +0800 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-06-25 01:13:41 +0200 |
commit | 626fea046b49490cdd8c917911437737c1f904a8 (patch) | |
tree | c69aa199d028febeb8bca126b04f3943bf2129eb /include | |
parent | d200c79b1ad1fa76feb5e0991d11f3edfe9960de (diff) | |
download | lwn-626fea046b49490cdd8c917911437737c1f904a8.tar.gz lwn-626fea046b49490cdd8c917911437737c1f904a8.zip |
rtc: pcf8563: Replace deprecated rtc_time_to_tm() and rtc_tm_to_time()
pcf8563_rtc_set_alarm() uses deprecated rtc_tm_to_time()
and rtc_time_to_tm(), which will overflow in year 2106
on 32-bit machines.
This patch solves this by:
- Replacing rtc_time_to_tm() with rtc_time64_to_tm()
- Replacing rtc_tm_to_time() with rtc_tm_to_time64()
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions