Question about usb_endpoint_xxx()

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

 



Hi USB ML

Linux have many usb_endpoint_xxx(), but I couldn't find
usb_endpoint_maxp();

and all (?) driver seems use le16_to_cpu(desc->wMaxPacketSize) directly.
Are there big reason ?

I think usb_endpoint_maxp() is readable.
Can I create below ?

static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd)
{
	return le16_to_cpu(epd->wMaxPacketSize);
}

Best regards
---
Kuninori Morimoto
--
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