Lines Matching defs:rtc
3 * An rtc/i2c driver for the Dallas DS1672
10 #include <linux/rtc.h>
112 struct rtc_device *rtc;
119 rtc = devm_rtc_allocate_device(&client->dev);
120 if (IS_ERR(rtc))
121 return PTR_ERR(rtc);
123 rtc->ops = &ds1672_rtc_ops;
124 rtc->range_max = U32_MAX;
126 err = devm_rtc_register_device(rtc);
130 i2c_set_clientdata(client, rtc);
149 .name = "rtc-ds1672",