wifi: rtw89: phy: refine helpers used for raw TX power
authorZong-Zhe Yang <kevin_yang@realtek.com>
Wed, 20 Sep 2023 07:43:19 +0000 (15:43 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 22 Sep 2023 07:43:58 +0000 (10:43 +0300)
commit634fd9920c28693d94c74a57cd7b1a21f5183c11
tree28506daaee37679585e8b9ca833aa4f90a3a7304
parent4cc05e3156503fc596c7b161f010f1d9fc16a985
wifi: rtw89: phy: refine helpers used for raw TX power

Originally, these helpers were implemented by macros. We rewrite them
by normal functions. In the new function to seek raw TX power by rate,
we access the array according to rate section and discard the original
pointer arithmetic.

Signed-off-by: Zong-Zhe Yang <kevin_yang@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/20230920074322.42898-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/phy.c