mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wireless: mt76: 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 <[email protected]> Signed-off-by: Allen Pais <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
35e3cd1db4
commit
4f9f79b085
+3
-4
@@ -11,9 +11,9 @@
|
||||
#include "mt76x02_mcu.h"
|
||||
#include "trace.h"
|
||||
|
||||
static void mt76x02_pre_tbtt_tasklet(unsigned long arg)
|
||||
static void mt76x02_pre_tbtt_tasklet(struct tasklet_struct *t)
|
||||
{
|
||||
struct mt76x02_dev *dev = (struct mt76x02_dev *)arg;
|
||||
struct mt76x02_dev *dev = from_tasklet(dev, t, mt76.pre_tbtt_tasklet);
|
||||
struct mt76_queue *q = dev->mt76.q_tx[MT_TXQ_PSD];
|
||||
struct beacon_bc_data data = {};
|
||||
struct sk_buff *skb;
|
||||
@@ -197,8 +197,7 @@ int mt76x02_dma_init(struct mt76x02_dev *dev)
|
||||
return -ENOMEM;
|
||||
|
||||
dev->mt76.tx_worker.fn = mt76x02_tx_worker;
|
||||
tasklet_init(&dev->mt76.pre_tbtt_tasklet, mt76x02_pre_tbtt_tasklet,
|
||||
(unsigned long)dev);
|
||||
tasklet_setup(&dev->mt76.pre_tbtt_tasklet, mt76x02_pre_tbtt_tasklet);
|
||||
|
||||
spin_lock_init(&dev->txstatus_fifo_lock);
|
||||
kfifo_init(&dev->txstatus_fifo, status_fifo, fifo_size);
|
||||
|
||||
Reference in New Issue
Block a user