This patch moves config.c into libcomposite and updates all gadgets.
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
obj-$(CONFIG_USB_GADGET) += udc-core.o
obj-$(CONFIG_USB_LIBCOMPOSITE) += libcomposite.o
-libcomposite-y := usbstring.o
+libcomposite-y := usbstring.o config.o
obj-$(CONFIG_USB_DUMMY_HCD) += dummy_hcd.o
obj-$(CONFIG_USB_NET2272) += net2272.o
obj-$(CONFIG_USB_NET2280) += net2280.o
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "u_serial.c"
#include "f_acm.c"
* a "gcc --combine ... part1.c part2.c part3.c ... " build would.
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
/* string IDs are assigned dynamically */
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "u_serial.c"
#include "f_acm.c"
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/kernel.h>
+#include <linux/module.h>
#include <linux/list.h>
#include <linux/string.h>
#include <linux/device.h>
}
return dest - (u8 *)buf;
}
-
+EXPORT_SYMBOL_GPL(usb_descriptor_fillbuf);
/**
* usb_gadget_config_buf - builts a complete configuration descriptor
cp->bmAttributes |= USB_CONFIG_ATT_ONE;
return len;
}
+EXPORT_SYMBOL_GPL(usb_gadget_config_buf);
/**
* usb_copy_descriptors - copy a vector of USB descriptors
return ret;
}
-
+EXPORT_SYMBOL_GPL(usb_copy_descriptors);
* a "gcc --combine ... part1.c part2.c part3.c ... " build would.
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "f_ecm.c"
* the runtime footprint, and giving us at least some parts of what
* a "gcc --combine ... part1.c part2.c part3.c ... " build would.
*/
-#include "config.c"
#include "epautoconf.c"
/*-------------------------------------------------------------------------*/
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#if defined CONFIG_USB_FUNCTIONFS_ETH || defined CONFIG_USB_FUNCTIONFS_RNDIS
#include "gadget_chips.h"
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "f_midi.c"
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "f_hid.c"
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "f_mass_storage.c"
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "f_mass_storage.c"
* a "gcc --combine ... part1.c part2.c part3.c ... " build would.
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "f_ncm.c"
* a "gcc --combine ... part1.c part2.c part3.c ... " build would.
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "u_serial.c"
* a "gcc --combine ... part1.c part2.c part3.c ... " build would.
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
/*-------------------------------------------------------------------------*/
* a "gcc --combine ... part1.c part2.c part3.c ... " build would.
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "f_acm.c"
#include <asm/unaligned.h>
#include "epautoconf.c"
-#include "config.c"
#include "composite.c"
#include "tcm_usb_gadget.h"
* a "gcc --combine ... part1.c part2.c part3.c ... " build would.
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "uvc_queue.c"
* a "gcc --combine ... part1.c part2.c part3.c ... " build would.
*/
#include "composite.c"
-#include "config.c"
#include "epautoconf.c"
#include "f_sourcesink.c"