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

can: c_can_pci: make c_can_pci_data const

Make c_can_pci_data structures const as they are only used during
a copy operation.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Bhumika Goyal and committed by
Marc Kleine-Budde
a4efd5d8 48794a82

+2 -2
+2 -2
drivers/net/can/c_can/c_can_pci.c
··· 251 251 pci_disable_device(pdev); 252 252 } 253 253 254 - static struct c_can_pci_data c_can_sta2x11= { 254 + static const struct c_can_pci_data c_can_sta2x11= { 255 255 .type = BOSCH_C_CAN, 256 256 .reg_align = C_CAN_REG_ALIGN_32, 257 257 .freq = 52000000, /* 52 Mhz */ 258 258 .bar = 0, 259 259 }; 260 260 261 - static struct c_can_pci_data c_can_pch = { 261 + static const struct c_can_pci_data c_can_pch = { 262 262 .type = BOSCH_C_CAN, 263 263 .reg_align = C_CAN_REG_32, 264 264 .freq = 50000000, /* 50 MHz */