]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: Constify static qmi structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 24 Nov 2020 15:59:18 +0000 (17:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Dec 2020 18:32:38 +0000 (20:32 +0200)
commitf6dd582d7b0473f374edcc823abc7c01cc0113f3
treed048d4b830a402597af3f06cce487419b57fc312
parente317d7835d6b849be1311255b462533618cfe001
ath10k: Constify static qmi structs

qmi_msg_handler[] and ath10k_qmi_ops are only used as input arguments
to qmi_handle_init() which accepts const pointers to both qmi_ops and
qmi_msg_handler. Make them const to allow the compiler to put them in
read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201122234031.33432-3-rikard.falkeborn@gmail.com
drivers/net/wireless/ath/ath10k/qmi.c