Searched hist:f3edc2dbe0ad0bbbd8450cd37328f99acf215fd8 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/usb/ |
H A D | usbnet.h | diff f3edc2dbe0ad0bbbd8450cd37328f99acf215fd8 Mon Oct 01 11:02:43 CDT 2018 Ben Dooks <ben-linux@fluff.org> 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>
|
/openbmc/linux/drivers/net/usb/ |
H A D | usbnet.c | diff f3edc2dbe0ad0bbbd8450cd37328f99acf215fd8 Mon Oct 01 11:02:43 CDT 2018 Ben Dooks <ben-linux@fluff.org> 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>
|