#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/mfd/ezx-pcap.h>
#include <linux/rtc.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
struct pcap_rtc { … };
static irqreturn_t pcap_rtc_irq(int irq, void *_pcap_rtc)
{ … }
static int pcap_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{ … }
static int pcap_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{ … }
static int pcap_rtc_read_time(struct device *dev, struct rtc_time *tm)
{ … }
static int pcap_rtc_set_time(struct device *dev, struct rtc_time *tm)
{ … }
static int pcap_rtc_irq_enable(struct device *dev, int pirq, unsigned int en)
{ … }
static int pcap_rtc_alarm_irq_enable(struct device *dev, unsigned int en)
{ … }
static const struct rtc_class_ops pcap_rtc_ops = …;
static int __init pcap_rtc_probe(struct platform_device *pdev)
{ … }
static struct platform_driver pcap_rtc_driver = …;
module_platform_driver_probe(…);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;