On Thu, 21 Jul 2011, Kuninori Morimoto wrote: > > 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); > } You can add that routine if you want. Alan Stern -- 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