On Sunday 07 November 2004 13:30, Adrian Bunk wrote: > The patch below makes some needlessly global USB gadget functions > static.
It looks fine except for the one config descriptor utility (just strike those bits from the patch). Those are exported to support composite devices ... for "multi-function" devices. - Dave > --- linux-2.6.10-rc1-mm3-full/include/linux/usb_gadget.h.old 2004-11-07 21:27:07.000000000 +0100 > +++ linux-2.6.10-rc1-mm3-full/include/linux/usb_gadget.h 2004-11-07 21:27:22.000000000 +0100 > @@ -856,10 +856,6 @@ > > /* utility to simplify managing config descriptors */ > > -/* write vector of descriptors into buffer */ > -int usb_descriptor_fillbuf(void *, unsigned, > - const struct usb_descriptor_header **); > - > /* build config descriptor from single descriptor vector */ > int usb_gadget_config_buf(const struct usb_config_descriptor *config, > void *buf, unsigned buflen, const struct usb_descriptor_header **desc); > --- linux-2.6.10-rc1-mm3-full/drivers/usb/gadget/config.c.old 2004-11-07 21:27:30.000000000 +0100 > +++ linux-2.6.10-rc1-mm3-full/drivers/usb/gadget/config.c 2004-11-07 21:27:44.000000000 +0100 > @@ -39,7 +39,7 @@ > * as part of configuring a composite device; or in other cases where > * sets of descriptors need to be marshaled. > */ > -int > +static int > usb_descriptor_fillbuf(void *buf, unsigned buflen, > const struct usb_descriptor_header **src) > { ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel