]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: ipheth: constify usb_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 8 Aug 2017 15:58:03 +0000 (21:28 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Aug 2017 00:47:58 +0000 (17:47 -0700)
commit86e674f26b5c5b7b2896dadd505e2d07d9d5cfd7
treecbbc6c25076ee6675230996bfcdd551dd7cdd886
parent7a1ac36154a3fb606ec5c0313198c2e8f7b55244
net: usb: ipheth: constify usb_device_id

usb_device_id are not supposed to change at runtime. All functions
working with usb_device_id provided by <linux/usb.h> work with
const usb_device_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/ipheth.c