Skip to content

Commit 46cb3cf

Browse files
ArvindYadavCsJiri Kosina
authored andcommitted
HID: usbkbd: constify usb_device_id and fix space before '[' error.
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. Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Arvind Yadav <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent a9d0683 commit 46cb3cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/usbhid/usbkbd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ static void usb_kbd_disconnect(struct usb_interface *intf)
392392
}
393393
}
394394

395-
static struct usb_device_id usb_kbd_id_table [] = {
395+
static const struct usb_device_id usb_kbd_id_table[] = {
396396
{ USB_INTERFACE_INFO(USB_INTERFACE_CLASS_HID, USB_INTERFACE_SUBCLASS_BOOT,
397397
USB_INTERFACE_PROTOCOL_KEYBOARD) },
398398
{ } /* Terminating entry */

0 commit comments

Comments
 (0)