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

Input: pxrc - move module device table closer to where it is used

There is no need to have the device table first in the file.

Reviewed-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Tested-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

+6 -6
+6 -6
drivers/input/joystick/pxrc.c
··· 19 19 #define PXRC_VENDOR_ID (0x1781) 20 20 #define PXRC_PRODUCT_ID (0x0898) 21 21 22 - static const struct usb_device_id pxrc_table[] = { 23 - { USB_DEVICE(PXRC_VENDOR_ID, PXRC_PRODUCT_ID) }, 24 - { } 25 - }; 26 - MODULE_DEVICE_TABLE(usb, pxrc_table); 27 - 28 22 struct pxrc { 29 23 struct input_dev *input; 30 24 struct usb_interface *intf; ··· 270 276 { 271 277 return pxrc_resume(intf); 272 278 } 279 + 280 + static const struct usb_device_id pxrc_table[] = { 281 + { USB_DEVICE(PXRC_VENDOR_ID, PXRC_PRODUCT_ID) }, 282 + { } 283 + }; 284 + MODULE_DEVICE_TABLE(usb, pxrc_table); 273 285 274 286 static struct usb_driver pxrc_driver = { 275 287 .name = "pxrc",