From: Luiz Fernando N. Capitulino Date: Thu, 26 Oct 2006 16:02:56 +0000 (-0300) Subject: USB: phidgetkit: Use usb_endpoint_* functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8419404949488bba4504005c0d1180fb07bef740;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git USB: phidgetkit: Use usb_endpoint_* functions Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/phidgetkit.c b/drivers/usb/misc/phidgetkit.c index abb4dcd811ac..0dc0d034cc9a 100644 --- a/drivers/usb/misc/phidgetkit.c +++ b/drivers/usb/misc/phidgetkit.c @@ -551,7 +551,7 @@ static int interfacekit_probe(struct usb_interface *intf, const struct usb_devic return -ENODEV; endpoint = &interface->endpoint[0].desc; - if (!(endpoint->bEndpointAddress & 0x80)) + if (!usb_endpoint_dir_in(endpoint)) return -ENODEV; /* * bmAttributes