1 From: Lorenzo Bianconi <lorenzo@kernel.org>
2 Date: Mon, 18 Sep 2023 12:29:07 +0200
3 Subject: [PATCH] net: ethernet: mtk_wed: rename mtk_rxbm_desc in
6 Rename mtk_rxbm_desc structure in mtk_wed_bm_desc since it will be used
7 even on tx side by MT7988 SoC.
9 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
10 Signed-off-by: Paolo Abeni <pabeni@redhat.com>
13 --- a/drivers/net/ethernet/mediatek/mtk_wed.c
14 +++ b/drivers/net/ethernet/mediatek/mtk_wed.c
15 @@ -599,7 +599,7 @@ mtk_wed_free_tx_buffer(struct mtk_wed_device
17 mtk_wed_rx_buffer_alloc(struct mtk_wed_device *dev)
19 - struct mtk_rxbm_desc *desc;
20 + struct mtk_wed_bm_desc *desc;
23 dev->rx_buf_ring.size = dev->wlan.rx_nbuf;
24 @@ -619,7 +619,7 @@ mtk_wed_rx_buffer_alloc(struct mtk_wed_d
26 mtk_wed_free_rx_buffer(struct mtk_wed_device *dev)
28 - struct mtk_rxbm_desc *desc = dev->rx_buf_ring.desc;
29 + struct mtk_wed_bm_desc *desc = dev->rx_buf_ring.desc;
33 --- a/include/linux/soc/mediatek/mtk_wed.h
34 +++ b/include/linux/soc/mediatek/mtk_wed.h
35 @@ -45,7 +45,7 @@ enum mtk_wed_wo_cmd {
36 MTK_WED_WO_CMD_WED_END
39 -struct mtk_rxbm_desc {
40 +struct mtk_wed_bm_desc {
43 } __packed __aligned(4);
44 @@ -109,7 +109,7 @@ struct mtk_wed_device {
48 - struct mtk_rxbm_desc *desc;
49 + struct mtk_wed_bm_desc *desc;