linux/drivers/rtc/rtc-ds1672.c

// SPDX-License-Identifier: GPL-2.0
/*
 * An rtc/i2c driver for the Dallas DS1672
 * Copyright 2005-06 Tower Technologies
 *
 * Author: Alessandro Zummo <[email protected]>
 */

#include <linux/i2c.h>
#include <linux/rtc.h>
#include <linux/module.h>

/* Registers */

#define DS1672_REG_CNT_BASE
#define DS1672_REG_CONTROL
#define DS1672_REG_TRICKLE

#define DS1672_REG_CONTROL_EOSC

/*
 * In the routines that deal directly with the ds1672 hardware, we use
 * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch
 * Time is set to UTC.
 */
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();