]> git.baikalelectronics.ru Git - kernel.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)
commit203ca8a1a4dbf92fa7ced2a47cdd6300fc72f56e
treec5518e07249ecf6bdc0658e1bf32ce60fca98e5f
parent9b496aaf1d24173a0ba70213c5df9d7704be43b4
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