From: Luiz Fernando N. Capitulino Date: Wed, 27 Sep 2006 18:58:53 +0000 (-0700) Subject: USB: powermate: Use usb_endpoint_* functions. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=60ca126c9589e3f4bcf81db9762dca82946cd2ba;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: powermate: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/input/powermate.c b/drivers/usb/input/powermate.c index b3c0d0c3eae9..f0f8db6810a2 100644 --- a/drivers/usb/input/powermate.c +++ b/drivers/usb/input/powermate.c @@ -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),