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

video: fbdev: udlfb: 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>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Cc: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Arvind Yadav and committed by
Bartlomiej Zolnierkiewicz
69de8496 8290d78e

+1 -1
+1 -1
drivers/video/fbdev/udlfb.c
··· 54 54 * which is compatible with all known USB 2.0 era graphics chips and firmware, 55 55 * but allows DisplayLink to increment those for any future incompatible chips 56 56 */ 57 - static struct usb_device_id id_table[] = { 57 + static const struct usb_device_id id_table[] = { 58 58 {.idVendor = 0x17e9, 59 59 .bInterfaceClass = 0xff, 60 60 .bInterfaceSubClass = 0x00,