aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2018-10-01 17:02:43 +0100
committerDavid S. Miller <davem@davemloft.net>2018-10-02 22:22:46 -0700
commitf3edc2dbe0ad0bbbd8450cd37328f99acf215fd8 (patch)
tree12b4c4b97ef171c0e208b80c1cd8b949b6ca8dac /include
parenttcp: do not release socket ownership in tcp_close() (diff)
downloadlinux-dev-f3edc2dbe0ad0bbbd8450cd37328f99acf215fd8.tar.xz
linux-dev-f3edc2dbe0ad0bbbd8450cd37328f99acf215fd8.zip
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')
-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;