summaryrefslogtreecommitdiff
path: root/drivers/net/can/c_can
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-06 09:48:31 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2017-12-01 11:14:22 +0300
commita4efd5d8a46e2ff3f04ba22b1f3b9ab52eca7154 (patch)
tree97066e8f751a4402e7acb1a2b3d715934f53b781 /drivers/net/can/c_can
parent48794a82c016e7c5a58b5e6f30ad6fea431a7940 (diff)
downloadlinux-a4efd5d8a46e2ff3f04ba22b1f3b9ab52eca7154.tar.xz
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>
Diffstat (limited to 'drivers/net/can/c_can')
-rw-r--r--drivers/net/can/c_can/c_can_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/can/c_can/c_can_pci.c b/drivers/net/can/c_can/c_can_pci.c
index d065c0e2d18e..406b4847e5dc 100644
--- a/drivers/net/can/c_can/c_can_pci.c
+++ b/drivers/net/can/c_can/c_can_pci.c
@@ -251,14 +251,14 @@ static void c_can_pci_remove(struct pci_dev *pdev)
pci_disable_device(pdev);
}
-static struct c_can_pci_data c_can_sta2x11= {
+static const struct c_can_pci_data c_can_sta2x11= {
.type = BOSCH_C_CAN,
.reg_align = C_CAN_REG_ALIGN_32,
.freq = 52000000, /* 52 Mhz */
.bar = 0,
};
-static struct c_can_pci_data c_can_pch = {
+static const struct c_can_pci_data c_can_pch = {
.type = BOSCH_C_CAN,
.reg_align = C_CAN_REG_32,
.freq = 50000000, /* 50 MHz */