From: Luiz Fernando N. Capitulino Date: Thu, 26 Oct 2006 16:02:56 +0000 (-0300) Subject: USB: phidgetkit: Use usb_endpoint_* functions X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8419404949488bba4504005c0d1180fb07bef740;p=platform%2Fupstream%2Fkernel-adaptation-pc.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 abb4dcd..0dc0d03 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