#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/mfd/da9055/core.h>
#include <linux/mfd/da9055/reg.h>
#include <linux/mfd/da9055/pdata.h>
struct da9055_rtc { … };
static int da9055_rtc_enable_alarm(struct da9055_rtc *rtc, bool enable)
{ … }
static irqreturn_t da9055_rtc_alm_irq(int irq, void *data)
{ … }
static int da9055_read_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm)
{ … }
static int da9055_set_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm)
{ … }
static int da9055_rtc_get_alarm_status(struct da9055 *da9055)
{ … }
static int da9055_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm)
{ … }
static int da9055_rtc_set_time(struct device *dev, struct rtc_time *tm)
{ … }
static int da9055_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{ … }
static int da9055_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{ … }
static int da9055_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled)
{ … }
static const struct rtc_class_ops da9055_rtc_ops = …;
static int da9055_rtc_device_init(struct da9055 *da9055,
struct da9055_pdata *pdata)
{ … }
static int da9055_rtc_probe(struct platform_device *pdev)
{ … }
#ifdef CONFIG_PM
static int da9055_rtc_suspend(struct device *dev)
{ … }
static int da9055_rtc_resume(struct device *dev)
{ … }
static int da9055_rtc_freeze(struct device *dev)
{ … }
#else
#define da9055_rtc_suspend …
#define da9055_rtc_resume …
#define da9055_rtc_freeze …
#endif
static const struct dev_pm_ops da9055_rtc_pm_ops = …;
static struct platform_driver da9055_rtc_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;