Re: [PATCH 02/10] net2280: use helper functions to determine endpoint type and direction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 15 April 2009, Matthias Kaehlcke wrote:
>                         t = scnprintf (next, size,
>                                 "\n%s (ep%d%s-%s) max %04x %s fifo %d\n",
> -                               ep->ep.name, t & USB_ENDPOINT_NUMBER_MASK,
> -                               (t & USB_DIR_IN) ? "in" : "out",
> +                                      ep->ep.name, usb_endpoint_number(d),
> +                                      usb_endpoint_dir_in(d) ? "in" : "out",
>                                 ({ char *val;
> -                                switch (d->bmAttributes & 0x03) {
> +                                       switch (usb_endpoint_type(d)) {
>                                  case USB_ENDPOINT_XFER_BULK:

You broke the indentation here... please don't do that.

>                                         val = "bulk"; break;
>                                  case USB_ENDPOINT_XFER_INT:


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux