提交 1e44f54b 编写于 作者: A Arvind Yadav 提交者: Greg Kroah-Hartman

usb: speedtch: 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: NArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c272fbe7
......@@ -737,7 +737,7 @@ static int speedtch_post_reset(struct usb_interface *intf)
** USB **
**********/
static struct usb_device_id speedtch_usb_ids[] = {
static const struct usb_device_id speedtch_usb_ids[] = {
{USB_DEVICE(0x06b9, 0x4061)},
{}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册