diff options
Diffstat (limited to 'include/linux/rtc.h')
| -rw-r--r-- | include/linux/rtc.h | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h index 6268208760e9..6aedc30003e7 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h | |||
| @@ -87,16 +87,11 @@ struct rtc_class_ops { | |||
| 87 | int (*set_offset)(struct device *, long offset); | 87 | int (*set_offset)(struct device *, long offset); |
| 88 | }; | 88 | }; |
| 89 | 89 | ||
| 90 | typedef struct rtc_task { | ||
| 91 | void (*func)(void *private_data); | ||
| 92 | void *private_data; | ||
| 93 | } rtc_task_t; | ||
| 94 | |||
| 95 | |||
| 96 | struct rtc_timer { | 90 | struct rtc_timer { |
| 97 | struct rtc_task task; | ||
| 98 | struct timerqueue_node node; | 91 | struct timerqueue_node node; |
| 99 | ktime_t period; | 92 | ktime_t period; |
| 93 | void (*func)(void *private_data); | ||
| 94 | void *private_data; | ||
| 100 | int enabled; | 95 | int enabled; |
| 101 | }; | 96 | }; |
| 102 | 97 | ||
| @@ -121,8 +116,6 @@ struct rtc_device { | |||
| 121 | wait_queue_head_t irq_queue; | 116 | wait_queue_head_t irq_queue; |
| 122 | struct fasync_struct *async_queue; | 117 | struct fasync_struct *async_queue; |
| 123 | 118 | ||
| 124 | struct rtc_task *irq_task; | ||
| 125 | spinlock_t irq_task_lock; | ||
| 126 | int irq_freq; | 119 | int irq_freq; |
| 127 | int max_user_freq; | 120 | int max_user_freq; |
| 128 | 121 | ||
| @@ -204,14 +197,8 @@ extern void rtc_update_irq(struct rtc_device *rtc, | |||
| 204 | extern struct rtc_device *rtc_class_open(const char *name); | 197 | extern struct rtc_device *rtc_class_open(const char *name); |
| 205 | extern void rtc_class_close(struct rtc_device *rtc); | 198 | extern void rtc_class_close(struct rtc_device *rtc); |
| 206 | 199 | ||
| 207 | extern int rtc_irq_register(struct rtc_device *rtc, | 200 | extern int rtc_irq_set_state(struct rtc_device *rtc, int enabled); |
| 208 | struct rtc_task *task); | 201 | extern int rtc_irq_set_freq(struct rtc_device *rtc, int freq); |
| 209 | extern void rtc_irq_unregister(struct rtc_device *rtc, | ||
| 210 | struct rtc_task *task); | ||
| 211 | extern int rtc_irq_set_state(struct rtc_device *rtc, | ||
| 212 | struct rtc_task *task, int enabled); | ||
| 213 | extern int rtc_irq_set_freq(struct rtc_device *rtc, | ||
| 214 | struct rtc_task *task, int freq); | ||
| 215 | extern int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled); | 202 | extern int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled); |
| 216 | extern int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled); | 203 | extern int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled); |
| 217 | extern int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc, | 204 | extern int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc, |
