summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-rx8581.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-17 23:33:26 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-17 23:37:14 +0300
commit86c54ef6e607ff190cd3464dfd8eba5b77388ea6 (patch)
treede8c6471e6307850fb4e6147c0b320e611b6f510 /drivers/rtc/rtc-rx8581.c
parentb8157168207db81f7f65a6e54675272c31868af5 (diff)
downloadlinux-86c54ef6e607ff190cd3464dfd8eba5b77388ea6.tar.xz
rtc: rx8581: add RTC range
The rx8581 can support dates from 01/01/2000 to 31/12/2099. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-rx8581.c')
-rw-r--r--drivers/rtc/rtc-rx8581.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-rx8581.c b/drivers/rtc/rtc-rx8581.c
index c64911a08531..c5ffd30ca672 100644
--- a/drivers/rtc/rtc-rx8581.c
+++ b/drivers/rtc/rtc-rx8581.c
@@ -291,6 +291,8 @@ static int rx8581_probe(struct i2c_client *client,
return PTR_ERR(rx8581->rtc);
rx8581->rtc->ops = &rx8581_rtc_ops;
+ rx8581->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
+ rx8581->rtc->range_max = RTC_TIMESTAMP_END_2099;
return rtc_register_device(rx8581->rtc);
}