linux/drivers/rtc/rtc-da9052.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Real time clock driver for DA9052
 *
 * Copyright(c) 2012 Dialog Semiconductor Ltd.
 *
 * Author: Dajun Dajun Chen <[email protected]>
 */

#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/err.h>
#include <linux/delay.h>

#include <linux/mfd/da9052/da9052.h>
#include <linux/mfd/da9052/reg.h>

#define rtc_err(rtc, fmt, ...)

#define DA9052_GET_TIME_RETRIES

struct da9052_rtc {};

static int da9052_rtc_enable_alarm(struct da9052_rtc *rtc, bool enable)
{}

static irqreturn_t da9052_rtc_irq(int irq, void *data)
{}

static int da9052_read_alarm(struct da9052_rtc *rtc, struct rtc_time *rtc_tm)
{}

static int da9052_set_alarm(struct da9052_rtc *rtc, struct rtc_time *rtc_tm)
{}

static int da9052_rtc_get_alarm_status(struct da9052_rtc *rtc)
{}

static int da9052_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm)
{}

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

static int da9052_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{}

static int da9052_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{}

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

static const struct rtc_class_ops da9052_rtc_ops =;

static int da9052_rtc_probe(struct platform_device *pdev)
{}

static struct platform_driver da9052_rtc_driver =;

module_platform_driver();

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