Lines Matching refs:rtc
19 #include <linux/rtc.h>
328 struct rtc_device *rtc;
350 rtc = devm_rtc_allocate_device(&client->dev);
351 if (IS_ERR(rtc))
352 return PTR_ERR(rtc);
354 rtc->ops = &isl12022_rtc_ops;
355 rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
356 rtc->range_max = RTC_TIMESTAMP_END_2099;
358 return devm_rtc_register_device(rtc);
376 .name = "rtc-isl12022",