summaryrefslogtreecommitdiff
path: root/include/linux/rtc.h
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-07-26 16:40:56 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-08-02 18:16:05 +0300
commit5a5ba10f44fa1cd081cec38389e1b47f438fe25b (patch)
tree1cb8f1c226a31dfaa765a85cd2ea7662a5065fed /include/linux/rtc.h
parentf7430151d8a324b36850fa0edf41e538f28ddf61 (diff)
downloadlinux-5a5ba10f44fa1cd081cec38389e1b47f438fe25b.tar.xz
rtc: remove struct rtc_task
Include rtc_task members directly in rtc_timer member. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'include/linux/rtc.h')
-rw-r--r--include/linux/rtc.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index bf4d375025d1..6aedc30003e7 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -87,16 +87,11 @@ struct rtc_class_ops {
int (*set_offset)(struct device *, long offset);
};
-typedef struct rtc_task {
- void (*func)(void *private_data);
- void *private_data;
-} rtc_task_t;
-
-
struct rtc_timer {
- struct rtc_task task;
struct timerqueue_node node;
ktime_t period;
+ void (*func)(void *private_data);
+ void *private_data;
int enabled;
};