rtw89: use inline function instead macro to set H2C and CAM
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 19 Nov 2021 05:45:12 +0000 (13:45 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 8 Dec 2021 18:26:35 +0000 (20:26 +0200)
commit00224aa70891ec4cdca54100674e0ca201535f84
treee09f499e85e276a94989de054e176960601b5b01
parent321e763ccc5260364600b4facd9e9acf645949b2
rtw89: use inline function instead macro to set H2C and CAM

In order to use compiler to check if we do improper cast of const* on
arguments of inline function.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Tested-by: Takashi Iwai <tiwai@suse.de>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20211119054512.10620-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/cam.h
drivers/net/wireless/realtek/rtw89/fw.h