mirror of
https://github.com/torvalds/linux.git
synced 2024-12-16 16:12:52 +00:00
USB: powermate: Use usb_endpoint_* functions.
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
96723199e0
commit
60ca126c95
@ -313,9 +313,7 @@ static int powermate_probe(struct usb_interface *intf, const struct usb_device_i
|
|||||||
|
|
||||||
interface = intf->cur_altsetting;
|
interface = intf->cur_altsetting;
|
||||||
endpoint = &interface->endpoint[0].desc;
|
endpoint = &interface->endpoint[0].desc;
|
||||||
if (!(endpoint->bEndpointAddress & 0x80))
|
if (!usb_endpoint_is_int_in(endpoint))
|
||||||
return -EIO;
|
|
||||||
if ((endpoint->bmAttributes & 3) != 3)
|
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
||||||
usb_control_msg(udev, usb_sndctrlpipe(udev, 0),
|
usb_control_msg(udev, usb_sndctrlpipe(udev, 0),
|
||||||
|
Loading…
Reference in New Issue
Block a user