Re: [PATCH] PCI: tegra: Constify static structs

2021-03-22 Thread Lorenzo Pieralisi
On Sun, 7 Feb 2021 23:16:04 +0100, Rikard Falkeborn wrote: > The only usage of them is to assign their address to the 'ops' field in > the pcie_port and the dw_pcie_ep structs, both which are pointers to > const. Make them const to allow the compiler to put them in read-only > memory. Applied to p

Re: [PATCH] PCI: tegra: Constify static structs

2021-03-07 Thread Krzysztof WilczyƄski
Hi Rikard, Thank you for sending the patch over! > The only usage of them is to assign their address to the 'ops' field in > the pcie_port and the dw_pcie_ep structs, both which are pointers to > const. Make them const to allow the compiler to put them in read-only > memory. [...] Reviewed-by: K

[PATCH] PCI: tegra: Constify static structs

2021-02-07 Thread Rikard Falkeborn
The only usage of them is to assign their address to the 'ops' field in the pcie_port and the dw_pcie_ep structs, both which are pointers to const. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/pci/controller/dwc/pcie-tegra194.