Skip to content

Commit a4efd5d

Browse files
goyalbhumikamarckleinebudde
authored andcommitted
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 <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 48794a8 commit a4efd5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/can/c_can/c_can_pci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@ static void c_can_pci_remove(struct pci_dev *pdev)
251251
pci_disable_device(pdev);
252252
}
253253

254-
static struct c_can_pci_data c_can_sta2x11= {
254+
static const struct c_can_pci_data c_can_sta2x11= {
255255
.type = BOSCH_C_CAN,
256256
.reg_align = C_CAN_REG_ALIGN_32,
257257
.freq = 52000000, /* 52 Mhz */
258258
.bar = 0,
259259
};
260260

261-
static struct c_can_pci_data c_can_pch = {
261+
static const struct c_can_pci_data c_can_pch = {
262262
.type = BOSCH_C_CAN,
263263
.reg_align = C_CAN_REG_32,
264264
.freq = 50000000, /* 50 MHz */

0 commit comments

Comments
 (0)