mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
rtc: enforce rtc_timer_init private_data type
All the remaining users of rtc_timers are passing the rtc_device as private data. Enforce that and rename private_data to rtc. Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
ffe1c5a2d4
commit
9a03201170
3 changed files with 19 additions and 18 deletions
|
@ -87,15 +87,16 @@ struct rtc_class_ops {
|
|||
int (*set_offset)(struct device *, long offset);
|
||||
};
|
||||
|
||||
struct rtc_device;
|
||||
|
||||
struct rtc_timer {
|
||||
struct timerqueue_node node;
|
||||
ktime_t period;
|
||||
void (*func)(void *private_data);
|
||||
void *private_data;
|
||||
void (*func)(struct rtc_device *rtc);
|
||||
struct rtc_device *rtc;
|
||||
int enabled;
|
||||
};
|
||||
|
||||
|
||||
/* flags */
|
||||
#define RTC_DEV_BUSY 0
|
||||
|
||||
|
@ -197,11 +198,12 @@ extern int rtc_dev_update_irq_enable_emul(struct rtc_device *rtc,
|
|||
unsigned int enabled);
|
||||
|
||||
void rtc_handle_legacy_irq(struct rtc_device *rtc, int num, int mode);
|
||||
void rtc_aie_update_irq(void *private);
|
||||
void rtc_uie_update_irq(void *private);
|
||||
void rtc_aie_update_irq(struct rtc_device *rtc);
|
||||
void rtc_uie_update_irq(struct rtc_device *rtc);
|
||||
enum hrtimer_restart rtc_pie_update_irq(struct hrtimer *timer);
|
||||
|
||||
void rtc_timer_init(struct rtc_timer *timer, void (*f)(void *p), void *data);
|
||||
void rtc_timer_init(struct rtc_timer *timer, void (*f)(struct rtc_device *r),
|
||||
struct rtc_device *rtc);
|
||||
int rtc_timer_start(struct rtc_device *rtc, struct rtc_timer *timer,
|
||||
ktime_t expires, ktime_t period);
|
||||
void rtc_timer_cancel(struct rtc_device *rtc, struct rtc_timer *timer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue