diff options
author | Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> | 2006-09-27 14:58:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 14:58:53 -0400 |
commit | 96642a2ce524f00f783edc95be8b2ce1429803df (patch) | |
tree | 3eadeff39d5735262be6120b8120b3269be212f5 /drivers/usb/input | |
parent | ee709a3c613d9c458323e04dd69c8eb233d45199 (diff) |
USB: ati_remote: Use usb_endpoint_* functions.
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/input')
-rw-r--r-- | drivers/usb/input/ati_remote.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/input/ati_remote.c b/drivers/usb/input/ati_remote.c index 3719fcb04b8f..3558d7ed99b9 100644 --- a/drivers/usb/input/ati_remote.c +++ b/drivers/usb/input/ati_remote.c | |||
@@ -732,12 +732,8 @@ static int ati_remote_probe(struct usb_interface *interface, const struct usb_de | |||
732 | endpoint_in = &iface_host->endpoint[0].desc; | 732 | endpoint_in = &iface_host->endpoint[0].desc; |
733 | endpoint_out = &iface_host->endpoint[1].desc; | 733 | endpoint_out = &iface_host->endpoint[1].desc; |
734 | 734 | ||
735 | if (!(endpoint_in->bEndpointAddress & USB_DIR_IN)) { | 735 | if (!usb_endpoint_is_int_in(endpoint_in)) { |
736 | err("%s: Unexpected endpoint_in->bEndpointAddress\n", __FUNCTION__); | 736 | err("%s: Unexpected endpoint_in\n", __FUNCTION__); |
737 | return -ENODEV; | ||
738 | } | ||
739 | if ((endpoint_in->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != USB_ENDPOINT_XFER_INT) { | ||
740 | err("%s: Unexpected endpoint_in->bmAttributes\n", __FUNCTION__); | ||
741 | return -ENODEV; | 737 | return -ENODEV; |
742 | } | 738 | } |
743 | if (le16_to_cpu(endpoint_in->wMaxPacketSize) == 0) { | 739 | if (le16_to_cpu(endpoint_in->wMaxPacketSize) == 0) { |