#define pr_fmt(fmt) …
#include <linux/compat.h>
#include <linux/module.h>
#include <linux/rtc.h>
#include <linux/sched/signal.h>
#include "rtc-core.h"
static dev_t rtc_devt;
#define RTC_DEV_MAX …
static int rtc_dev_open(struct inode *inode, struct file *file)
{ … }
#ifdef CONFIG_RTC_INTF_DEV_UIE_EMUL
static void rtc_uie_task(struct work_struct *work)
{ … }
static void rtc_uie_timer(struct timer_list *t)
{ … }
static int clear_uie(struct rtc_device *rtc)
{ … }
static int set_uie(struct rtc_device *rtc)
{ … }
int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc, unsigned int enabled)
{ … }
EXPORT_SYMBOL(…);
#endif
static ssize_t
rtc_dev_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
{ … }
static __poll_t rtc_dev_poll(struct file *file, poll_table *wait)
{ … }
static long rtc_dev_ioctl(struct file *file,
unsigned int cmd, unsigned long arg)
{ … }
#ifdef CONFIG_COMPAT
#define RTC_IRQP_SET32 …
#define RTC_IRQP_READ32 …
#define RTC_EPOCH_SET32 …
static long rtc_dev_compat_ioctl(struct file *file,
unsigned int cmd, unsigned long arg)
{ … }
#endif
static int rtc_dev_fasync(int fd, struct file *file, int on)
{ … }
static int rtc_dev_release(struct inode *inode, struct file *file)
{ … }
static const struct file_operations rtc_dev_fops = …;
void rtc_dev_prepare(struct rtc_device *rtc)
{ … }
void __init rtc_dev_init(void)
{ … }