summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtw88/main.h
diff options
context:
space:
mode:
authorPing-Ke Shih <pkshih@realtek.com>2022-07-27 14:52:32 +0800
committerKalle Valo <kvalo@kernel.org>2022-08-09 08:48:59 +0300
commitdcbf179cbc18f66976740d28fbcfab75be514d16 (patch)
tree4ee45ec9cc4ade41ee976cc2899b20d50d0a8e32 /drivers/net/wireless/realtek/rtw88/main.h
parent86331c7e0cd819bf0c1d0dcf895e0c90b0aa9a6f (diff)
wifi: rtw88: access chip_info by const pointer
Since chip_info has became const table, we must access them via const pointer to avoid invalid writing. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20220727065232.28510-1-pkshih@realtek.com
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/main.h')
-rw-r--r--drivers/net/wireless/realtek/rtw88/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/main.h b/drivers/net/wireless/realtek/rtw88/main.h
index 69d0a700c2ae..b3a7969b2b81 100644
--- a/drivers/net/wireless/realtek/rtw88/main.h
+++ b/drivers/net/wireless/realtek/rtw88/main.h
@@ -1980,7 +1980,7 @@ struct rtw_dev {
struct rtw_hci hci;
struct rtw_hw_scan_info scan_info;
- struct rtw_chip_info *chip;
+ const struct rtw_chip_info *chip;
struct rtw_hal hal;
struct rtw_fifo_conf fifo;
struct rtw_fw_state fw;