]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: spear: set range max
authorZeng Jingxiang <linuszeng@tencent.com>
Thu, 28 Jul 2022 10:01:01 +0000 (18:01 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 8 Aug 2022 22:56:41 +0000 (00:56 +0200)
commitea65e7c6c00ab82781a9b13d0d66da0af019ab84
treea78594a4be10678bce26f494aa773eeef3cd8b52
parent6a93308d277ed17531c6681cb1432375d1c8ad35
rtc: spear: set range max

In the commit 7984f890af96b08e2c2fda43557a254bc2a288e6
("rtc: spear: set range"), the value of
RTC_TIMESTAMP_END_9999 was incorrectly set to range_min.
390 config->rtc->range_min = RTC_TIMESTAMP_BEGIN_0000;
391 config->rtc->range_max = RTC_TIMESTAMP_END_9999;

Fixes: 7984f890af96 ("rtc: spear: set range")
Signed-off-by: Zeng Jingxiang <linuszeng@tencent.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220728100101.1906801-1-zengjx95@gmail.com
drivers/rtc/rtc-spear.c