wifi: ath9k: Make arrays prof_prio and channelmap static const
authorColin Ian King <colin.i.king@gmail.com>
Wed, 5 Oct 2022 15:55:58 +0000 (16:55 +0100)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 10 Oct 2022 09:45:54 +0000 (12:45 +0300)
commite161d4b60ae3a5356e07202e0bfedb5fad82c6aa
tree63cbf09ac933a4a4385ad23cb34cc76755fe97f1
parenta797f479bf3e02c6d179c2e6aeace7f9b22b0acd
wifi: ath9k: Make arrays prof_prio and channelmap static const

Don't populate the read-only arrays prof_prio and channelmap
on the stack but instead make them static const. Also makes the
object code a little smaller.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221005155558.320556-1-colin.i.king@gmail.com
drivers/net/wireless/ath/ath9k/mci.c