#include <linux/i2c.h>
#include <linux/rtc.h>
#include <linux/module.h>
#define DS1672_REG_CNT_BASE …
#define DS1672_REG_CONTROL …
#define DS1672_REG_TRICKLE …
#define DS1672_REG_CONTROL_EOSC …
static int ds1672_read_time(struct device *dev, struct rtc_time *tm)
{ … }
static int ds1672_set_time(struct device *dev, struct rtc_time *tm)
{ … }
static const struct rtc_class_ops ds1672_rtc_ops = …;
static int ds1672_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id ds1672_id[] = …;
MODULE_DEVICE_TABLE(i2c, ds1672_id);
static const __maybe_unused struct of_device_id ds1672_of_match[] = …;
MODULE_DEVICE_TABLE(of, ds1672_of_match);
static struct i2c_driver ds1672_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;