Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: ipwireless: convert tasklets to use new tasklet_setup() API

In preparation for unconditionally passing the
struct tasklet_struct pointer to all tasklet
callbacks, switch to using the new tasklet_setup()
and from_tasklet() to pass the tasklet pointer explicitly.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Link: https://lore.kernel.org/r/20200817085921.26033-2-allen.cryptic@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Allen Pais and committed by
Greg Kroah-Hartman
a42a9f6a 9123e3a7

+3 -3
+3 -3
drivers/tty/ipwireless/hardware.c
··· 1006 1006 /* 1007 1007 * Send and receive all queued packets. 1008 1008 */ 1009 - static void ipwireless_do_tasklet(unsigned long hw_) 1009 + static void ipwireless_do_tasklet(struct tasklet_struct *t) 1010 1010 { 1011 - struct ipw_hardware *hw = (struct ipw_hardware *) hw_; 1011 + struct ipw_hardware *hw = from_tasklet(hw, t, tasklet); 1012 1012 unsigned long flags; 1013 1013 1014 1014 spin_lock_irqsave(&hw->lock, flags); ··· 1635 1635 INIT_LIST_HEAD(&hw->rx_queue); 1636 1636 INIT_LIST_HEAD(&hw->rx_pool); 1637 1637 spin_lock_init(&hw->lock); 1638 - tasklet_init(&hw->tasklet, ipwireless_do_tasklet, (unsigned long) hw); 1638 + tasklet_setup(&hw->tasklet, ipwireless_do_tasklet); 1639 1639 INIT_WORK(&hw->work_rx, ipw_receive_data_work); 1640 1640 timer_setup(&hw->setup_timer, ipwireless_setup_timer, 0); 1641 1641