Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: pxa2xx-pci: Constify struct pxa_spi_info variables

Now when there are no dynamical changes required, we may
constify struct pxa_spi_info variables.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220225172350.69797-11-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
fcaaf76e ba8d1353

+5 -5
+5 -5
drivers/spi/spi-pxa2xx-pci.c
··· 164 164 return 0; 165 165 } 166 166 167 - static struct pxa_spi_info lpss_info_config = { 167 + static const struct pxa_spi_info lpss_info_config = { 168 168 .setup = lpss_spi_setup, 169 169 }; 170 170 ··· 179 179 return pxa2xx_spi_pci_clk_register(dev, ssp, 3686400); 180 180 } 181 181 182 - static struct pxa_spi_info ce4100_info_config = { 182 + static const struct pxa_spi_info ce4100_info_config = { 183 183 .setup = ce4100_spi_setup, 184 184 }; 185 185 ··· 236 236 return 0; 237 237 } 238 238 239 - static struct pxa_spi_info mrfld_info_config = { 239 + static const struct pxa_spi_info mrfld_info_config = { 240 240 .setup = mrfld_spi_setup, 241 241 }; 242 242 ··· 251 251 return pxa2xx_spi_pci_clk_register(dev, ssp, 50000000); 252 252 } 253 253 254 - static struct pxa_spi_info qrk_info_config = { 254 + static const struct pxa_spi_info qrk_info_config = { 255 255 .setup = qrk_spi_setup, 256 256 }; 257 257 258 258 static int pxa2xx_spi_pci_probe(struct pci_dev *dev, 259 259 const struct pci_device_id *ent) 260 260 { 261 + const struct pxa_spi_info *info; 261 262 struct platform_device_info pi; 262 263 int ret; 263 264 struct platform_device *pdev; 264 265 struct pxa2xx_spi_controller spi_pdata; 265 - struct pxa_spi_info *info; 266 266 struct ssp_device *ssp; 267 267 268 268 ret = pcim_enable_device(dev);