wifi: rtw89: correct PHY register offset for PHY-1
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 9 Feb 2024 06:52:19 +0000 (14:52 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 12 Feb 2024 15:39:12 +0000 (17:39 +0200)
commitdb84b758541f0925a5c8263ea0af1656fe38412f
treee0cadac14bac3f8c5ba67a4a6ea02cf7d385916d
parentf20073f50dfd1e1232e44834c74db718ffd2149b
wifi: rtw89: correct PHY register offset for PHY-1

PHY-1 can be seen as a copy of PHY-0, and the difference is their base
register address, so add a function to get offset to access PHY-1.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240209065229.34515-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/phy.c
drivers/net/wireless/realtek/rtw89/phy.h
drivers/net/wireless/realtek/rtw89/phy_be.c