wifi: rtw89: refine add_chan H2C command to encode_bits
authorPo-Hao Huang <phhuang@realtek.com>
Fri, 19 Jan 2024 08:14:54 +0000 (16:14 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 23 Jan 2024 11:38:14 +0000 (13:38 +0200)
commit49d158557474a0c173e313ba1b7d0bd9d1f815a2
treeb80f8d8a885109d479d35105011d79e8a86b2dfd
parenta4374cbd6b2e15340488e66983c7535d5dd6a5a9
wifi: rtw89: refine add_chan H2C command to encode_bits

Use struct filling style instead of pointer casting.
This does not change the original behavior.

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://msgid.link/20240119081501.25223-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/fw.h