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

staging: rtl8712: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Arvind Yadav and committed by
Greg Kroah-Hartman
9b40a017 27acb557

+1 -1
+1 -1
drivers/staging/rtl8712/usb_intf.c
··· 47 47 48 48 static void r871xu_dev_remove(struct usb_interface *pusb_intf); 49 49 50 - static struct usb_device_id rtl871x_usb_id_tbl[] = { 50 + static const struct usb_device_id rtl871x_usb_id_tbl[] = { 51 51 52 52 /* RTL8188SU */ 53 53 /* Realtek */