Skip to content

Commit

Permalink
USB: powermate: 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 9672319 commit 60ca126
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/usb/input/powermate.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,7 @@ static int powermate_probe(struct usb_interface *intf, const struct usb_device_i

interface = intf->cur_altsetting;
endpoint = &interface->endpoint[0].desc;
if (!(endpoint->bEndpointAddress & 0x80))
return -EIO;
if ((endpoint->bmAttributes & 3) != 3)
if (!usb_endpoint_is_int_in(endpoint))
return -EIO;

usb_control_msg(udev, usb_sndctrlpipe(udev, 0),
Expand Down

0 comments on commit 60ca126

Please sign in to comment.