]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: spear: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 9 Mar 2022 16:22:50 +0000 (17:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 23 Mar 2022 18:58:40 +0000 (19:58 +0100)
commit7984f890af96b08e2c2fda43557a254bc2a288e6
treef3d990b4b6d7656fb3070a02f79a5b66d64a8a0e
parent414b20e9fbe8d14187415e04fa2db057d5bb26f7
rtc: spear: set range

While the RTC can store dates from year 0000 to 9999, leap years where not
tested fro 2100. The driver currently stores tm_year directly which will
probably fail at that time or more probably in 2300.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20220309162301.61679-19-alexandre.belloni@bootlin.com
drivers/rtc/rtc-spear.c