diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-08 22:53:14 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-18 15:57:16 -0700 |
commit | 8654eb1fcaa3c854a695ee7aceac158f08c20391 (patch) | |
tree | 5b0c6332de4bd59f0f37dcf1baa4e518b49c7060 /drivers/staging/rtl8188eu | |
parent | 9b40a017387c3679cbbe9c86fcbfa3644cda1c35 (diff) | |
download | linux-8654eb1fcaa3c854a695ee7aceac158f08c20391.tar.gz linux-8654eb1fcaa3c854a695ee7aceac158f08c20391.tar.bz2 linux-8654eb1fcaa3c854a695ee7aceac158f08c20391.zip |
staging: rtl8188eu: 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>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/usb_intf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index d283341cfe43..2fe690d61764 100644 --- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c +++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c @@ -32,7 +32,7 @@ #define USB_VENDER_ID_REALTEK 0x0bda /* DID_USB_v916_20130116 */ -static struct usb_device_id rtw_usb_id_tbl[] = { +static const struct usb_device_id rtw_usb_id_tbl[] = { /*=== Realtek demoboard ===*/ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8179)}, /* 8188EUS */ {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x0179)}, /* 8188ETV */ |