summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-asm9260.c
diff options
context:
space:
mode:
authorStefan Christ <s.christ@phytec.de>2016-03-15 16:22:26 +0300
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-03-19 02:00:59 +0300
commitbcebd81d00a062af5a4cf900b08c8ca22a26d52f (patch)
treeecb5898faad1ad7c9db3b4ada06d28ed5ef7033e /drivers/rtc/rtc-asm9260.c
parentae6e00b4c01f701a9a268adf35371c018396cd05 (diff)
downloadlinux-bcebd81d00a062af5a4cf900b08c8ca22a26d52f.tar.xz
rtc: m41t80: avoid out of range year values
Avoid saving an out of range year value to the RTC. Reading that value from the RTC again returns a totally wrong time value. For Example $ timedatectl set-ntp no $ timedatectl set-time "1990-01-01 12:12:00" # Reboot rtc-m41t80 0-0068: setting system clock to 2090-01-01 12:12:35 UTC (3786955955) Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-asm9260.c')
0 files changed, 0 insertions, 0 deletions