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

watchdog: pcwd_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>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Arvind Yadav and committed by
Wim Van Sebroeck
cc53e1c2 f3a7f6f6

+1 -1
+1 -1
drivers/watchdog/pcwd_usb.c
··· 74 74 #define USB_PCWD_PRODUCT_ID 0x1140 75 75 76 76 /* table of devices that work with this driver */ 77 - static struct usb_device_id usb_pcwd_table[] = { 77 + static const struct usb_device_id usb_pcwd_table[] = { 78 78 { USB_DEVICE(USB_PCWD_VENDOR_ID, USB_PCWD_PRODUCT_ID) }, 79 79 { } /* Terminating entry */ 80 80 };