Lines Matching refs:rtc_dev
1070 struct rtc_device *rtc_dev; in ds1685_rtc_probe() local
1261 rtc_dev = devm_rtc_allocate_device(&pdev->dev); in ds1685_rtc_probe()
1262 if (IS_ERR(rtc_dev)) in ds1685_rtc_probe()
1263 return PTR_ERR(rtc_dev); in ds1685_rtc_probe()
1265 rtc_dev->ops = &ds1685_rtc_ops; in ds1685_rtc_probe()
1268 rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000; in ds1685_rtc_probe()
1269 rtc_dev->range_max = RTC_TIMESTAMP_END_2099; in ds1685_rtc_probe()
1272 rtc_dev->max_user_freq = RTC_MAX_USER_FREQ; in ds1685_rtc_probe()
1276 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc_dev->features); in ds1685_rtc_probe()
1278 rtc->dev = rtc_dev; in ds1685_rtc_probe()
1290 clear_bit(RTC_FEATURE_ALARM, rtc_dev->features); in ds1685_rtc_probe()
1309 ret = rtc_add_group(rtc_dev, &ds1685_rtc_sysfs_misc_grp); in ds1685_rtc_probe()
1314 ret = devm_rtc_nvmem_register(rtc_dev, &nvmem_cfg); in ds1685_rtc_probe()
1318 return devm_rtc_register_device(rtc_dev); in ds1685_rtc_probe()