From: Luiz Fernando N. Capitulino Date: Thu, 26 Oct 2006 16:02:57 +0000 (-0300) Subject: USB: phidgetmotorcontrol: Use usb_endpoint_* functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a742e5a7fc5b179e2482b85e875fc99192cead74;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git USB: phidgetmotorcontrol: Use usb_endpoint_* functions Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/phidgetmotorcontrol.c b/drivers/usb/misc/phidgetmotorcontrol.c index 5c780cab92e0..7702a4f7b082 100644 --- a/drivers/usb/misc/phidgetmotorcontrol.c +++ b/drivers/usb/misc/phidgetmotorcontrol.c @@ -323,7 +323,7 @@ static int motorcontrol_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; /*