rtw89: pci: use a struct to describe all registers address related to DMA channel
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 7 Mar 2022 06:04:48 +0000 (14:04 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 10 Mar 2022 16:42:27 +0000 (18:42 +0200)
commite4133f269eb78211ab1ef7f35018092ac299c1a6
tree76a856e36c77b6e94d99d124627db96f611e3be4
parent97d61bf94026e0613fad6c4b96f68a407ce94cf6
rtw89: pci: use a struct to describe all registers address related to DMA channel

We have had a struct rtw89_pci_ch_dma_addr to describe register address,
so use it as regular. Since the addresses should be changed dynamically
according to operating mode, I don't change it to be constant.

These changes don't affect the logic, so I put them in this separated
patch.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220307060457.56789-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c
drivers/net/wireless/realtek/rtw89/pci.h