Re: [PATCH] soundwire: qcom: Constify static structs

2020-06-22 Thread Vinod Koul
On 10-06-20, 01:00, Rikard Falkeborn wrote: > qcom_swrm_port_ops and qcom_swrm_ops are not modified and can be made > const to allow the compiler to put them in read-only memory. > > Before: >textdata bss dec hex filename > 182663056 256 21578544a

[PATCH] soundwire: qcom: Constify static structs

2020-06-09 Thread Rikard Falkeborn
qcom_swrm_port_ops and qcom_swrm_ops are not modified and can be made const to allow the compiler to put them in read-only memory. Before: textdata bss dec hex filename 182663056 256 21578544a drivers/soundwire/qcom.o After: textdata bss dec