Lines Matching refs:rtc
8 * based on rtc-HYM8563
16 #include <linux/rtc.h>
80 struct rtc_device *rtc;
415 rtc_lock(hym8563->rtc);
435 rtc_unlock(hym8563->rtc);
507 hym8563->rtc = devm_rtc_allocate_device(&client->dev);
508 if (IS_ERR(hym8563->rtc))
509 return PTR_ERR(hym8563->rtc);
547 dev_dbg(&client->dev, "rtc information is %s\n",
550 hym8563->rtc->ops = &hym8563_rtc_ops;
551 set_bit(RTC_FEATURE_ALARM_RES_MINUTE, hym8563->rtc->features);
552 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, hym8563->rtc->features);
558 return devm_rtc_register_device(hym8563->rtc);
575 .name = "rtc-hym8563",