diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-01-27 19:15:39 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-01-28 16:47:05 +0300 |
commit | d6b5f30d9886a4f1e00c9bf355af2a95cabafa09 (patch) | |
tree | e7d701c9f89c5c678a9c8a3fb107702dfcefe9bc /drivers/net/can/usb/peak_usb/pcan_usb_pro.c | |
parent | 0adfd7335b622ca3cac94810487db470f57892fc (diff) | |
download | linux-d6b5f30d9886a4f1e00c9bf355af2a95cabafa09.tar.xz |
can: peak_usb: constify struct peak_usb_adapter
A "struct peak_usb_adapter" describes a certain USB adapter, as this doesn't
change during runtime, this patch marks all USB adapter definitions as const.
Acked-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/usb/peak_usb/pcan_usb_pro.c')
-rw-r--r-- | drivers/net/can/usb/peak_usb/pcan_usb_pro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/usb/peak_usb/pcan_usb_pro.c b/drivers/net/can/usb/peak_usb/pcan_usb_pro.c index 145fa87c31b9..56855b2b1fa1 100644 --- a/drivers/net/can/usb/peak_usb/pcan_usb_pro.c +++ b/drivers/net/can/usb/peak_usb/pcan_usb_pro.c @@ -1012,7 +1012,7 @@ static int pcan_usb_pro_probe(struct usb_interface *intf) /* * describe the PCAN-USB Pro adapter */ -struct peak_usb_adapter pcan_usb_pro = { +const struct peak_usb_adapter pcan_usb_pro = { .name = "PCAN-USB Pro", .device_id = PCAN_USBPRO_PRODUCT_ID, .ctrl_count = PCAN_USBPRO_CHANNEL_COUNT, |