rtw89: 8852c: implement chip_ops::get_thermal
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 21 Apr 2022 12:09:01 +0000 (20:09 +0800)
committerKalle Valo <kvalo@kernel.org>
Sun, 24 Apr 2022 11:30:36 +0000 (14:30 +0300)
commit3ecca403d9bf714be570ca2a31569485618c9da0
treea27896b5c70143785d25573e72a2e171ab5d70f9
parentaf0cac159b1c96633436b71a4a790d77a1d75858
rtw89: 8852c: implement chip_ops::get_thermal

Read thermal value, and then we can use EWMA thermal value to do RF
calibrations if the value is changed over a threshold.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220421120903.73715-13-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8852c.c