Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm: udl: 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: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/22fa8ca67a6d4a59997f463bf241ed56596fbcfa.1502526524.git.arvind.yadav.cs@gmail.com

authored by

Arvind Yadav and committed by
Daniel Vetter
36436f4e 3c2c42eb

+1 -1
+1 -1
drivers/gpu/drm/udl/udl_drv.c
··· 111 111 * which is compatible with all known USB 2.0 era graphics chips and firmware, 112 112 * but allows DisplayLink to increment those for any future incompatible chips 113 113 */ 114 - static struct usb_device_id id_table[] = { 114 + static const struct usb_device_id id_table[] = { 115 115 {.idVendor = 0x17e9, .bInterfaceClass = 0xff, 116 116 .bInterfaceSubClass = 0x00, 117 117 .bInterfaceProtocol = 0x00,