aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/rtc.h')
-rw-r--r--include/linux/rtc.h21
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
90typedef struct rtc_task {
91 void (*func)(void *private_data);
92 void *private_data;
93} rtc_task_t;
94
95
96struct rtc_timer { 90struct 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,
204extern struct rtc_device *rtc_class_open(const char *name); 197extern struct rtc_device *rtc_class_open(const char *name);
205extern void rtc_class_close(struct rtc_device *rtc); 198extern void rtc_class_close(struct rtc_device *rtc);
206 199
207extern int rtc_irq_register(struct rtc_device *rtc, 200extern int rtc_irq_set_state(struct rtc_device *rtc, int enabled);
208 struct rtc_task *task); 201extern int rtc_irq_set_freq(struct rtc_device *rtc, int freq);
209extern void rtc_irq_unregister(struct rtc_device *rtc,
210 struct rtc_task *task);
211extern int rtc_irq_set_state(struct rtc_device *rtc,
212 struct rtc_task *task, int enabled);
213extern int rtc_irq_set_freq(struct rtc_device *rtc,
214 struct rtc_task *task, int freq);
215extern int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled); 202extern int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled);
216extern int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled); 203extern int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled);
217extern int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc, 204extern int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc,