diff options
| author | Thomas Gleixner | 2017-11-23 16:29:05 +0100 | 
|---|---|---|
| committer | Thomas Gleixner | 2017-11-23 16:29:05 +0100 | 
| commit | 866c9b94ef968445c52214b3748ecc52a8491bca (patch) | |
| tree | 1fd073acb9be8e89e77b35c41e2964ac6feabee6 /drivers/atm/lanai.c | |
| parent | timekeeping: Remove CONFIG_GENERIC_TIME_VSYSCALL_OLD (diff) | |
| parent | treewide: Remove TIMER_FUNC_TYPE and TIMER_DATA_TYPE casts (diff) | |
| download | kernel-qcow2-linux-866c9b94ef968445c52214b3748ecc52a8491bca.tar.gz kernel-qcow2-linux-866c9b94ef968445c52214b3748ecc52a8491bca.tar.xz kernel-qcow2-linux-866c9b94ef968445c52214b3748ecc52a8491bca.zip | |
Merge tag 'for-linus-timers-conversion-final-v4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux into timers/urgent
Pull the last batch of manual timer conversions from Kees Cook:
 - final batch of "non trivial" timer conversions (multi-tree dependencies,
   things Coccinelle couldn't handle, etc).
 - treewide conversions via Coccinelle, in 4 steps:
   - DEFINE_TIMER() functions converted to struct timer_list * argument
   - init_timer() -> setup_timer()
   - setup_timer() -> timer_setup()
   - setup_timer() -> timer_setup() (with a single embedded structure)
 - deprecated timer API removals (init_timer(), setup_*timer())
 - finalization of new API (remove global casts)
Diffstat (limited to 'drivers/atm/lanai.c')
| -rw-r--r-- | drivers/atm/lanai.c | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c index 2351dad78ff5..6664aa50789e 100644 --- a/drivers/atm/lanai.c +++ b/drivers/atm/lanai.c @@ -1761,9 +1761,9 @@ static void iter_dequeue(struct lanai_dev *lanai, vci_t vci)  }  #endif /* !DEBUG_RW */ -static void lanai_timed_poll(unsigned long arg) +static void lanai_timed_poll(struct timer_list *t)  { -	struct lanai_dev *lanai = (struct lanai_dev *) arg; +	struct lanai_dev *lanai = from_timer(lanai, t, timer);  #ifndef DEBUG_RW  	unsigned long flags;  #ifdef USE_POWERDOWN @@ -1790,10 +1790,8 @@ static void lanai_timed_poll(unsigned long arg)  static inline void lanai_timed_poll_start(struct lanai_dev *lanai)  { -	init_timer(&lanai->timer); +	timer_setup(&lanai->timer, lanai_timed_poll, 0);  	lanai->timer.expires = jiffies + LANAI_POLL_PERIOD; -	lanai->timer.data = (unsigned long) lanai; -	lanai->timer.function = lanai_timed_poll;  	add_timer(&lanai->timer);  } | 
