summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2018-10-01 19:02:43 +0300
committerDavid S. Miller <davem@davemloft.net>2018-10-03 08:22:46 +0300
commitf3edc2dbe0ad0bbbd8450cd37328f99acf215fd8 (patch)
tree12b4c4b97ef171c0e208b80c1cd8b949b6ca8dac /include/linux/usb
parent8873c064d1de579ea23412a6d3eee972593f142b (diff)
downloadlinux-f3edc2dbe0ad0bbbd8450cd37328f99acf215fd8.tar.xz
net: usbnet: make driver_info const
The driver_info field that is used for describing each of the usb-net drivers using the usbnet.c core all declare their information as const and the usbnet.c itself does not try and modify the struct. It is therefore a good idea to make this const in the usbnet.c structure in case anyone tries to modify it. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/usbnet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h
index e2ec3582e549..d8860f2d0976 100644
--- a/include/linux/usb/usbnet.h
+++ b/include/linux/usb/usbnet.h
@@ -28,7 +28,7 @@ struct usbnet {
/* housekeeping */
struct usb_device *udev;
struct usb_interface *intf;
- struct driver_info *driver_info;
+ const struct driver_info *driver_info;
const char *driver_name;
void *driver_priv;
wait_queue_head_t wait;