linux/drivers/rtc/rtc-ds1286.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * DS1286 Real Time Clock interface for Linux
 *
 * Copyright (C) 1998, 1999, 2000 Ralf Baechle
 * Copyright (C) 2008 Thomas Bogendoerfer
 *
 * Based on code written by Paul Gortmaker.
 */

#include <linux/module.h>
#include <linux/rtc.h>
#include <linux/platform_device.h>
#include <linux/bcd.h>
#include <linux/rtc/ds1286.h>
#include <linux/io.h>
#include <linux/slab.h>

struct ds1286_priv {};

static inline u8 ds1286_rtc_read(struct ds1286_priv *priv, int reg)
{}

static inline void ds1286_rtc_write(struct ds1286_priv *priv, u8 data, int reg)
{}


static int ds1286_alarm_irq_enable(struct device *dev, unsigned int enabled)
{}

#ifdef CONFIG_RTC_INTF_DEV

static int ds1286_ioctl(struct device *dev, unsigned int cmd, unsigned long arg)
{}

#else
#define ds1286_ioctl
#endif

#ifdef CONFIG_PROC_FS

static int ds1286_proc(struct device *dev, struct seq_file *seq)
{}

#else
#define ds1286_proc
#endif

static int ds1286_read_time(struct device *dev, struct rtc_time *tm)
{}

static int ds1286_set_time(struct device *dev, struct rtc_time *tm)
{}

static int ds1286_read_alarm(struct device *dev, struct rtc_wkalrm *alm)
{}

static int ds1286_set_alarm(struct device *dev, struct rtc_wkalrm *alm)
{}

static const struct rtc_class_ops ds1286_ops =;

static int ds1286_probe(struct platform_device *pdev)
{}

static struct platform_driver ds1286_platform_driver =;

module_platform_driver();

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