]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61fc99558314a815c69e7308c0f66c77496a4ef7
tree76a856e36c77b6e94d99d124627db96f611e3be4
parentc8471eef410679eb510a14222ccdd2565dea3048
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