Commit 9869a93c authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: ds1305: set range

parent ca824be9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -694,6 +694,8 @@ static int ds1305_probe(struct spi_device *spi)
		return PTR_ERR(ds1305->rtc);

	ds1305->rtc->ops = &ds1305_ops;
	ds1305->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
	ds1305->rtc->range_max = RTC_TIMESTAMP_END_2099;

	ds1305_nvmem_cfg.priv = ds1305;
	ds1305->rtc->nvram_old_abi = true;