wifi: rtlwifi: rtl8723be: Make read-only arrays static const
authorColin Ian King <colin.i.king@gmail.com>
Thu, 25 Apr 2024 15:57:33 +0000 (16:57 +0100)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 29 Apr 2024 01:48:36 +0000 (09:48 +0800)
commited403e86c8269b5d594dea380b09a0a76e7872ea
treed42281a125bc0531516d4917cd3a4352bc801bcf
parent5eb027019fa3a5ee7d1ab12e31200afa00d5cb76
wifi: rtlwifi: rtl8723be: Make read-only arrays static const

Don't populate the read-only arrays cck_rates, ofdm_rates, ht_rates_1t and
channel_all on the stack at run time, instead make them static const and
clean up the formatting.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/20240425155733.114423-1-colin.i.king@gmail.com
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c