On 2020-02-06 00:53, Lorenzo Bianconi wrote: > Rely on mt76_mcu in mt76_mcu_rx_event signature in order to reuse > it in usb code > > Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> > --- > drivers/net/wireless/mediatek/mt76/mcu.c | 8 +++++--- > drivers/net/wireless/mediatek/mt76/mt76.h | 2 +- > drivers/net/wireless/mediatek/mt76/mt7603/dma.c | 4 ++-- > drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 2 +- > drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c | 3 +-- > 5 files changed, 10 insertions(+), 9 deletions(-) > > diff --git a/drivers/net/wireless/mediatek/mt76/mcu.c b/drivers/net/wireless/mediatek/mt76/mcu.c > index b0fb0830c9e1..a2936f8de915 100644 > --- a/drivers/net/wireless/mediatek/mt76/mcu.c > +++ b/drivers/net/wireless/mediatek/mt76/mcu.c > @@ -42,9 +42,11 @@ struct sk_buff *mt76_mcu_get_response(struct mt76_dev *dev, > } > EXPORT_SYMBOL_GPL(mt76_mcu_get_response); > > -void mt76_mcu_rx_event(struct mt76_dev *dev, struct sk_buff *skb) > +void mt76_mcu_rx_event(void *data, struct sk_buff *skb) Why the void* pointer if we have the mcu struct in a common place in struct mt76_dev anyway? - Felix