summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-proc.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2015-11-06 17:37:56 +0100
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-01-11 20:19:54 +0100
commitfbbf53f70225c82ba877de780486be5bc81b29e2 (patch)
treedb1b469aefb12d9df8425d9b2450970becbcccb1 /drivers/rtc/rtc-proc.c
parentc60faa3afad0e926e63a39894489b64e9a8165df (diff)
downloadlinux-fbbf53f70225c82ba877de780486be5bc81b29e2.tar.bz2
rtc: pcf8523: refuse to write dates later than 2099
When the chip increments the YEAR register and it already holds bin2bcd(99) it reads as 0 afterwards. With this behaviour the last valid day (without trickery) that has a representation is 2099-12-31 23:59:59. So refuse to write later dates. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-proc.c')
0 files changed, 0 insertions, 0 deletions