mt76: dma: move mt76x02_init_{tx,rx}_queue in mt76 module
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 28 Feb 2019 16:54:32 +0000 (17:54 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 1 May 2019 11:03:55 +0000 (13:03 +0200)
commitb1bfbe704f8f2466a8e1bba7c8ecef1d41b30b96
tree0228360ee2c8f8a746b4bf4fbe1da9638f761538
parent9220f695c17b8b82ee97a38b5f11f85abdfde1e6
mt76: dma: move mt76x02_init_{tx,rx}_queue in mt76 module

Move mt76x02_init_tx_queue and mt76x02_init_rx_queue in mt76
module in order to be reused adding support for mt7603 driver
and remove duplicated code.
Squash mt76x02_init_tx_queue and mt76x02_init_rx_queue in
mt76_dma_alloc_queue

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/mt7603/dma.c
drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c