diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-07-18 20:12:12 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-07-25 21:04:16 +0200 |
commit | ce55f75f039479fc67ab978560067717fa26e1c8 (patch) | |
tree | 4ae58744397ad5e49886cc16d743379d10e3e9c2 /drivers/input | |
parent | Input: pxrc - fix freeing URB on device teardown (diff) | |
download | linux-ce55f75f039479fc67ab978560067717fa26e1c8.tar.xz linux-ce55f75f039479fc67ab978560067717fa26e1c8.zip |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/joystick/pxrc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/input/joystick/pxrc.c b/drivers/input/joystick/pxrc.c index 1560f0e39c34..327b5ef8515f 100644 --- a/drivers/input/joystick/pxrc.c +++ b/drivers/input/joystick/pxrc.c @@ -19,12 +19,6 @@ #define PXRC_VENDOR_ID (0x1781) #define PXRC_PRODUCT_ID (0x0898) -static const struct usb_device_id pxrc_table[] = { - { USB_DEVICE(PXRC_VENDOR_ID, PXRC_PRODUCT_ID) }, - { } -}; -MODULE_DEVICE_TABLE(usb, pxrc_table); - struct pxrc { struct input_dev *input; struct usb_interface *intf; @@ -277,6 +271,12 @@ static int pxrc_reset_resume(struct usb_interface *intf) return pxrc_resume(intf); } +static const struct usb_device_id pxrc_table[] = { + { USB_DEVICE(PXRC_VENDOR_ID, PXRC_PRODUCT_ID) }, + { } +}; +MODULE_DEVICE_TABLE(usb, pxrc_table); + static struct usb_driver pxrc_driver = { .name = "pxrc", .probe = pxrc_probe, |