Lines Matching full:rtc_dev
92 struct rtc_device *rtc_dev; member
110 rtc_update_irq(rtc->rtc_dev, 1, RTC_AF | RTC_IRQF); in sh_rtc_alarm()
390 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in sh_rtc_probe()
391 if (IS_ERR(rtc->rtc_dev)) in sh_rtc_probe()
392 return PTR_ERR(rtc->rtc_dev); in sh_rtc_probe()
425 rtc->rtc_dev->ops = &sh_rtc_ops; in sh_rtc_probe()
426 rtc->rtc_dev->max_user_freq = 256; in sh_rtc_probe()
429 rtc->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_1900; in sh_rtc_probe()
430 rtc->rtc_dev->range_max = RTC_TIMESTAMP_END_9999; in sh_rtc_probe()
432 rtc->rtc_dev->range_min = mktime64(1999, 1, 1, 0, 0, 0); in sh_rtc_probe()
433 rtc->rtc_dev->range_max = mktime64(2098, 12, 31, 23, 59, 59); in sh_rtc_probe()
436 ret = devm_rtc_register_device(rtc->rtc_dev); in sh_rtc_probe()