wifi: rtw89: use struct to access register-based H2C/C2H
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 22 May 2023 12:25:13 +0000 (20:25 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 25 May 2023 16:13:14 +0000 (19:13 +0300)
commit68012b44dfc723a114748a5e67f98a99b2943852
tree0ea5c88c573a67d596920a271606a52b48d223d8
parentc26700d2df01d084ee904ca872fd4db67e772c6f
wifi: rtw89: use struct to access register-based H2C/C2H

The register-based H2C/C2H are used to exchange commands and events with
firmware. The exchange data is limited, but it is relatively simple,
because it can work before HCI initialization. To make these code clean,
use struct to access them. This patch doesn't change logic at all.

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