From lcapitulino@conectiva.com.br Sat Aug 5 16:28:43 2006 From: Luiz Fernando N. Capitulino To: greg@kroah.com Cc: linux-usb-devel@lists.sourceforge.net, Luiz Fernando N. Capitulino Subject: USB: ati_remote: Use usb_endpoint_* functions. Date: Sáb, 05 Ago 2006 20:28:16 -0300 Message-Id: <1154820501755-git-send-email-lcapitulino@mandriva.com.br> Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman --- drivers/usb/input/ati_remote.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) --- gregkh-2.6.orig/drivers/usb/input/ati_remote.c +++ gregkh-2.6/drivers/usb/input/ati_remote.c @@ -732,12 +732,8 @@ static int ati_remote_probe(struct usb_i endpoint_in = &iface_host->endpoint[0].desc; endpoint_out = &iface_host->endpoint[1].desc; - if (!(endpoint_in->bEndpointAddress & USB_DIR_IN)) { - err("%s: Unexpected endpoint_in->bEndpointAddress\n", __FUNCTION__); - return -ENODEV; - } - if ((endpoint_in->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != USB_ENDPOINT_XFER_INT) { - err("%s: Unexpected endpoint_in->bmAttributes\n", __FUNCTION__); + if (!usb_endpoint_is_int_in(endpoint_in)) { + err("%s: Unexpected endpoint_in\n", __FUNCTION__); return -ENODEV; } if (le16_to_cpu(endpoint_in->wMaxPacketSize) == 0) {