Re: [PATCH net-next 2/2] ath10k: Constify static qmi structs

2020-12-02 Thread Kalle Valo
Rikard Falkeborn wrote: > 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

[PATCH net-next 2/2] ath10k: Constify static qmi structs

2020-11-22 Thread Rikard Falkeborn
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 --- drivers/net/wireless/ath/ath10k/