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

Input: powermate - 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 <arvind.yadav.cs@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Arvind Yadav and committed by
Dmitry Torokhov
81c3d81c 0360b3f6

+1 -1
+1 -1
drivers/input/misc/powermate.c
··· 432 432 } 433 433 } 434 434 435 - static struct usb_device_id powermate_devices [] = { 435 + static const struct usb_device_id powermate_devices[] = { 436 436 { USB_DEVICE(POWERMATE_VENDOR, POWERMATE_PRODUCT_NEW) }, 437 437 { USB_DEVICE(POWERMATE_VENDOR, POWERMATE_PRODUCT_OLD) }, 438 438 { USB_DEVICE(CONTOUR_VENDOR, CONTOUR_JOG) },