diff options
author | Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> | 2006-09-27 11:58:53 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 11:58:53 -0700 |
commit | ee709a3c613d9c458323e04dd69c8eb233d45199 (patch) | |
tree | 8c79a5a10dd65585134a935c6e99dc9ac9ebad9d /drivers/usb/input/acecad.c | |
parent | 97b107ca391c0411e6c5fc1e26585cd8285696f9 (diff) | |
download | op-kernel-dev-ee709a3c613d9c458323e04dd69c8eb233d45199.zip op-kernel-dev-ee709a3c613d9c458323e04dd69c8eb233d45199.tar.gz |
USB: acecad: 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/acecad.c')
-rw-r--r-- | drivers/usb/input/acecad.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/input/acecad.c b/drivers/usb/input/acecad.c index 18c10e1..d83603b 100644 --- a/drivers/usb/input/acecad.c +++ b/drivers/usb/input/acecad.c @@ -141,10 +141,7 @@ static int usb_acecad_probe(struct usb_interface *intf, const struct usb_device_ endpoint = &interface->endpoint[0].desc; - if (!(endpoint->bEndpointAddress & 0x80)) - return -ENODEV; - - if ((endpoint->bmAttributes & 3) != 3) + if (!usb_endpoint_is_int_in(endpoint)) return -ENODEV; pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress); |