This is a standard BCD RTC that will fail in 2100.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
u8 regs[7];
u8 ctrl1;
- if ((tm->tm_year < 100) || (tm->tm_year > 199))
- return -EINVAL;
-
/*
* to accurately set the time, reset the divider chain and keep it in
* reset state until all time/date registers are written
return PTR_ERR(rtc);
rtc->ops = &pcf85063_rtc_ops;
+ rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
+ rtc->range_max = RTC_TIMESTAMP_END_2099;
return rtc_register_device(rtc);
}