Skip to content

Commit

Permalink
USB: acecad: Use usb_endpoint_* functions.
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Luiz Fernando N. Capitulino authored and Greg Kroah-Hartman committed Sep 27, 2006
1 parent 97b107c commit ee709a3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/usb/input/acecad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ee709a3

Please sign in to comment.