Lines Matching defs:rtc
9 #include <linux/rtc.h>
67 struct rtc_device *rtc;
144 * Returns <0 on error, 0 if rtc is setup fine and 1 if the chip was reset.
457 s35390a->rtc = devm_rtc_allocate_device(dev);
458 if (IS_ERR(s35390a->rtc))
459 return PTR_ERR(s35390a->rtc);
490 s35390a->rtc->ops = &s35390a_rtc_ops;
491 s35390a->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
492 s35390a->rtc->range_max = RTC_TIMESTAMP_END_2099;
495 s35390a->rtc->uie_unsupported = 1;
498 rtc_update_irq(s35390a->rtc, 1, RTC_AF);
500 return rtc_register_device(s35390a->rtc);
505 .name = "rtc-s35390a",