aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/rtc.h
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-02-25 21:20:45 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-02-25 21:20:45 +0100
commitad5ea5b9d513107869acd460f0180d8fb94856b9 (patch)
treeff8153619c29abcaafbf9abba071f781feb7bea1 /include/linux/rtc.h
parentrtc: add AB-RTCMC-32.768kHz-EOZ9 RTC support (diff)
downloadwireguard-linux-ad5ea5b9d513107869acd460f0180d8fb94856b9.tar.xz
wireguard-linux-ad5ea5b9d513107869acd460f0180d8fb94856b9.zip
rtc: remove rtc_class_ops.read_callback
Since commit 416f0e8056f7 ("RTC: sa1100: Update the sa1100 RTC driver."), the last user of .read_callback is gone. It has been 8 years and now new user appeared. Simply remove it. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'include/linux/rtc.h')
-rw-r--r--include/linux/rtc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index c1089fe5344a..f89bfbb54902 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -67,7 +67,7 @@ extern struct class *rtc_class;
*
* The (current) exceptions are mostly filesystem hooks:
* - the proc() hook for procfs
- * - non-ioctl() chardev hooks: open(), release(), read_callback()
+ * - non-ioctl() chardev hooks: open(), release()
*
* REVISIT those periodic irq calls *do* have ops_lock when they're
* issued through ioctl() ...
@@ -81,7 +81,6 @@ struct rtc_class_ops {
int (*proc)(struct device *, struct seq_file *);
int (*set_mmss64)(struct device *, time64_t secs);
int (*set_mmss)(struct device *, unsigned long secs);
- int (*read_callback)(struct device *, int data);
int (*alarm_irq_enable)(struct device *, unsigned int enabled);
int (*read_offset)(struct device *, long *offset);
int (*set_offset)(struct device *, long offset);