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

Input: synaptics_usb - 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: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Arvind Yadav and committed by
Dmitry Torokhov
3cafe412 a45232d6

+1 -1
+1 -1
drivers/input/mouse/synaptics_usb.c
··· 525 525 return synusb_resume(intf); 526 526 } 527 527 528 - static struct usb_device_id synusb_idtable[] = { 528 + static const struct usb_device_id synusb_idtable[] = { 529 529 { USB_DEVICE_SYNAPTICS(TP, SYNUSB_TOUCHPAD) }, 530 530 { USB_DEVICE_SYNAPTICS(INT_TP, SYNUSB_TOUCHPAD) }, 531 531 { USB_DEVICE_SYNAPTICS(CPAD,