Skip to content

Commit 95ac4cb

Browse files
ArvindYadavCsdtor
authored andcommitted
Input: kbtab - 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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 803088f commit 95ac4cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/input/tablet/kbtab.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static void kbtab_irq(struct urb *urb)
8888
__func__, retval);
8989
}
9090

91-
static struct usb_device_id kbtab_ids[] = {
91+
static const struct usb_device_id kbtab_ids[] = {
9292
{ USB_DEVICE(USB_VENDOR_ID_KBGEAR, 0x1001), .driver_info = 0 },
9393
{ }
9494
};

0 commit comments

Comments
 (0)