wifi: rtw88: refine register based H2C command
authorPo-Hao Huang <phhuang@realtek.com>
Fri, 16 Jun 2023 12:55:39 +0000 (20:55 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 21 Jun 2023 09:41:45 +0000 (12:41 +0300)
commit455afa45edb3f1dbc1371201c5ee486bb9a8cd1a
treeb593fbca6e4c012e5edc68d3951deea92aaf0a6b
parentad6741b1e0449ba8f4eb41dc28e269dc20ab9219
wifi: rtw88: refine register based H2C command

Since register based H2C commands don't need endian conversion.
Introduce a new API that don't do conversion and send it directly.
New caller are expected to encode with cpu order and gradually
replace the old ones.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230616125540.36877-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/fw.c
drivers/net/wireless/realtek/rtw88/fw.h