diff options
author | Michael Opdenacker <michael-lists@free-electrons.com> | 2007-02-21 22:51:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-24 00:03:46 +0100 |
commit | 4ef2e23f03c597e2073b649e7287b840f8fb9274 (patch) | |
tree | 75e7aff3cc4be47121cfa2a51f30af6c087e9894 /drivers/usb/input/usbmouse.c | |
parent | USB: add rationale on why usb descriptor structures have to be packed (diff) | |
download | linux-4ef2e23f03c597e2073b649e7287b840f8fb9274.tar.xz linux-4ef2e23f03c597e2073b649e7287b840f8fb9274.zip |
USB: Use USB defines in usbmouse.c and usbkbd.c
The below patch proposes to use USB defines (defined in linux/hid.h)
instead of just plain numbers in the USB_INTERFACE_INFO statements.
Signed-off-by: Michael Opdenacker <michael@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to '')
-rw-r--r-- | drivers/usb/input/usbmouse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/input/usbmouse.c b/drivers/usb/input/usbmouse.c index 64a33e420cfb..692fd6087779 100644 --- a/drivers/usb/input/usbmouse.c +++ b/drivers/usb/input/usbmouse.c @@ -31,6 +31,7 @@ #include <linux/module.h> #include <linux/init.h> #include <linux/usb/input.h> +#include <linux/hid.h> /* * Version Information @@ -213,7 +214,8 @@ static void usb_mouse_disconnect(struct usb_interface *intf) } static struct usb_device_id usb_mouse_id_table [] = { - { USB_INTERFACE_INFO(3, 1, 2) }, + { USB_INTERFACE_INFO(USB_INTERFACE_CLASS_HID, USB_INTERFACE_SUBCLASS_BOOT, + USB_INTERFACE_PROTOCOL_MOUSE) }, { } /* Terminating entry */ }; |