Lines Matching defs:rtc
3 * An rtc/i2c driver for the Dallas DS1672
10 #include <linux/rtc.h>
113 struct rtc_device *rtc;
120 rtc = devm_rtc_allocate_device(&client->dev);
121 if (IS_ERR(rtc))
122 return PTR_ERR(rtc);
124 rtc->ops = &ds1672_rtc_ops;
125 rtc->range_max = U32_MAX;
127 err = rtc_register_device(rtc);
131 i2c_set_clientdata(client, rtc);
150 .name = "rtc-ds1672",