]> asedeno.scripts.mit.edu Git - linux.git/commit
rtc: sh: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 20 Mar 2019 11:30:10 +0000 (12:30 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:09 +0000 (10:07 +0200)
commitbeee05dfbead2331a3183dee8ddcf10066278355
treec5518e07249ecf6bdc0658e1bf32ce60fca98e5f
parent1097998d27da39578542e79ff865b4d74e755cd0
rtc: sh: set range

The SH RTC is a BCD RTC with some version having 4 digits for the year.

The range for the RTCs with only 2 digits for the year was unfortunately
shifted to handle 1999 to 2098.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sh.c
include/linux/rtc.h