On Sat, 7 May 2005, David Brownell wrote: > > Also i found that there is a bcddevice no in all gadget drivers. Do > > i need to register officially? > > That is, to fit into blocks of code like: > > } else if (gadget_is_omap (gadget)) { > device_desc.bcdDevice = __constant_cpu_to_le16 (0x0208); > } else if (gadget_is_lh7a40x(gadget)) { > device_desc.bcdDevice = __constant_cpu_to_le16 (0x0209); > ... > } else if (gadget_is_at91(gadget)) { > device_desc.bcdDevice = __constant_cpu_to_le16 (0x0213);
This section of code strikes me as an excellent candidate for a library routine, since it's reused practically verbatim in a number of gadget drivers. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel