From: Luiz Fernando N. Capitulino Date: Thu, 26 Oct 2006 16:02:48 +0000 (-0300) Subject: USB: cdc-acm: Use usb_endpoint_* functions X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~91 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=45aea704d12d05f06b3f82974aa1438460f42398;p=linux-2.6-omap-h63xx.git USB: cdc-acm: Use usb_endpoint_* functions Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 9a9012fd284..ec3438dc8ee 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -892,7 +892,7 @@ skip_normal_probe: /* workaround for switched endpoints */ - if ((epread->bEndpointAddress & USB_DIR_IN) != USB_DIR_IN) { + if (!usb_endpoint_dir_in(epread)) { /* descriptors are swapped */ struct usb_endpoint_descriptor *t; dev_dbg(&intf->dev,"The data interface has switched endpoints");