rtc_time_to_tm() and rtc_tm_to_time() are using 32 bits variables so they may break in y2038/2106.
This patcheset is a subset (22 vs 51) of the first version where I have only updated the drivers where I believe using 64 bits functions could help. For example hardwares using BCD like time encoding or those storing date in more than 32 bits are in this series.
I have rebase my patches on top of rtc-next and fix the errors reported by Kbuild.
Benjamin Gaignard (22): x86: rtc: stop using rtc deprecated functions x86: intel-mid: vrtc: stop using rtc deprecated functions net: broadcom: stop using rtc deprecated functions rtc: ab-b5ze-s3: stop using rtc deprecated functions rtc: ab8500: stop using rtc deprecated functions rtc: cpcap: stop using rtc deprecated functions rtc: davinci: stop using rtc deprecated functions rtc: ds1305: stop using rtc deprecated functions rtc: ds1511: stop using rtc deprecated functions rtc: ds1553: stop using rtc deprecated functions rtc: gemini: stop using rtc deprecated functions rtc: mv: stop using rtc deprecated functions rtc: omap: stop using rtc deprecated functions rtc: pcap: stop using rtc deprecated functions rtc: rs5c348: stop using rtc deprecated functions rtc: sh: stop using rtc deprecated functions rtc: snvs: stop using rtc deprecated functions rtc: stk17ta8: stop using rtc deprecated functions rtc: sun6i: stop using rtc deprecated functions rtc: sysfs: stop using rtc deprecated functions rtc: test: stop using rtc deprecated functions power: suspend test: stop using rtc deprecated functions
arch/x86/kernel/rtc.c | 6 ++-- arch/x86/platform/intel-mid/intel_mid_vrtc.c | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- drivers/rtc/rtc-ab-b5ze-s3.c | 45 +++++++---------------- drivers/rtc/rtc-ab8500.c | 53 +++++++++++++--------------- drivers/rtc/rtc-cpcap.c | 17 +++++---- drivers/rtc/rtc-davinci.c | 8 ++--- drivers/rtc/rtc-ds1305.c | 11 +++--- drivers/rtc/rtc-ds1511.c | 2 +- drivers/rtc/rtc-ds1553.c | 2 +- drivers/rtc/rtc-ftrtc010.c | 8 ++--- drivers/rtc/rtc-mv.c | 2 +- drivers/rtc/rtc-omap.c | 6 ++-- drivers/rtc/rtc-pcap.c | 28 +++++++-------- drivers/rtc/rtc-rs5c348.c | 4 +-- drivers/rtc/rtc-sh.c | 2 +- drivers/rtc/rtc-snvs.c | 14 ++++---- drivers/rtc/rtc-stk17ta8.c | 2 +- drivers/rtc/rtc-sun6i.c | 14 ++++---- drivers/rtc/rtc-sysfs.c | 25 ++++++------- drivers/rtc/rtc-test.c | 17 +-------- kernel/power/suspend_test.c | 6 ++-- 22 files changed, 116 insertions(+), 160 deletions(-)