Re: [PATCH] slimbus: qcom-ngd-ctrl: Constify static structs

2020-11-24 Thread Srinivas Kandagatla
On 22/11/2020 23:42, Rikard Falkeborn wrote: qcom_slim_qmi_msg_handlers[] and qcom_slim_ngd_qmi_svc_event_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 m

[PATCH] slimbus: qcom-ngd-ctrl: Constify static structs

2020-11-22 Thread Rikard Falkeborn
qcom_slim_qmi_msg_handlers[] and qcom_slim_ngd_qmi_svc_event_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 --- driv