linux/drivers/rtc/rtc-max6902.c

// SPDX-License-Identifier: GPL-2.0-only
/* drivers/rtc/rtc-max6902.c
 *
 * Copyright (C) 2006 8D Technologies inc.
 * Copyright (C) 2004 Compulab Ltd.
 *
 * Driver for MAX6902 spi RTC
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/init.h>
#include <linux/rtc.h>
#include <linux/spi/spi.h>
#include <linux/bcd.h>

#define MAX6902_REG_SECONDS
#define MAX6902_REG_MINUTES
#define MAX6902_REG_HOURS
#define MAX6902_REG_DATE
#define MAX6902_REG_MONTH
#define MAX6902_REG_DAY
#define MAX6902_REG_YEAR
#define MAX6902_REG_CONTROL
#define MAX6902_REG_CENTURY

static int max6902_set_reg(struct device *dev, unsigned char address,
				unsigned char data)
{}

static int max6902_get_reg(struct device *dev, unsigned char address,
				unsigned char *data)
{}

static int max6902_read_time(struct device *dev, struct rtc_time *dt)
{}

static int max6902_set_time(struct device *dev, struct rtc_time *dt)
{}

static const struct rtc_class_ops max6902_rtc_ops =;

static int max6902_probe(struct spi_device *spi)
{}

static struct spi_driver max6902_driver =;

module_spi_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();
MODULE_ALIAS();