diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-07-26 15:40:56 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-08-02 17:16:05 +0200 |
commit | 5a5ba10f44fa1cd081cec38389e1b47f438fe25b (patch) | |
tree | 1cb8f1c226a31dfaa765a85cd2ea7662a5065fed /include/linux/rtc.h | |
parent | f7430151d8a324b36850fa0edf41e538f28ddf61 (diff) | |
download | lwn-5a5ba10f44fa1cd081cec38389e1b47f438fe25b.tar.gz lwn-5a5ba10f44fa1cd081cec38389e1b47f438fe25b.zip |
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.h | 9 |
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; }; |