linux/drivers/usb/gadget
Sebastian Andrzej Siewior 3b4a3fc0ba usb: gadget: move usb_gadget_controller_number() into a .c file and libcomposite
After I moved the function from the header file to the c file I see:

| $ size drivers/usb/gadget/gadget_chips.o
| text    data     bss     dec     hex filename
| 1048       0       0    1048     418 drivers/usb/gadget/gadget_chips.o

That is almost a KiB which is removed from each user.
As Felipe pointed out, the function / usage is very dumb actually. This is
used for the following reasons:
- epautoconf ep hint (could provide a per-gadget callback)
- miss-features. currently the missing altsetting on pxa's and something
  ZLP related on musbhdrc (looks like an optimisation which could be
  implemented in musb itself if it is correct)
- unique BCD accross all UDCs. Not sure how important this is.

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2012-09-10 16:12:59 +03:00
..
Kconfig usb: gadget: start with libcomposite 2012-09-10 15:36:04 +03:00
Makefile usb: gadget: move usb_gadget_controller_number() into a .c file and libcomposite 2012-09-10 16:12:59 +03:00
acm_ms.c usb: gadget: use usb_string_ids_tab instead multiple usb_string_id() 2012-09-10 16:06:48 +03:00
amd5536udc.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
amd5536udc.h
at91_udc.c usb: gadget: at91_udc: Propagate devicetree to gadget drivers 2012-07-02 10:38:07 +03:00
at91_udc.h
atmel_usba_udc.c usb: gadget: atmel_usba_udc: Remove unneeded condition 2012-06-04 18:15:44 +03:00
atmel_usba_udc.h
audio.c usb: gadget: use usb_string_ids_tab instead multiple usb_string_id() 2012-09-10 16:06:48 +03:00
bcm63xx_udc.c usb: gadget: bcm63xx UDC driver 2012-09-05 15:39:41 +03:00
cdc2.c usb: gadget: use usb_string_ids_tab instead multiple usb_string_id() 2012-09-10 16:06:48 +03:00
composite.c usb: gadget: make composite module options readonly only 2012-09-10 16:06:34 +03:00
config.c usb: gadget: libcomposite: move config.c into libcomposite 2012-09-10 15:36:16 +03:00
dbgp.c usb: gadget: libcomposite: add epautoconf.c to libcomposite 2012-09-10 15:37:51 +03:00
dummy_hcd.c usb: gadget: dummy-hcd: remember to update driver pointer 2012-08-31 12:41:39 +03:00
epautoconf.c usb: gadget: libcomposite: add epautoconf.c to libcomposite 2012-09-10 15:37:51 +03:00
ether.c usb: gadget: use usb_string_ids_tab instead multiple usb_string_id() 2012-09-10 16:06:48 +03:00
f_acm.c
f_ecm.c usb: gadget: use %pm to print mac addresses 2012-08-23 11:04:20 +03:00
f_eem.c
f_fs.c usb: gadget: ffs: add HID descriptor support. 2012-06-04 18:11:59 +03:00
f_hid.c usb: gadget: hidg: register OUT INT endpoint for SET_REPORT 2012-06-15 14:34:53 +03:00
f_loopback.c
f_mass_storage.c usb: gadget: mass_storage: make "file" and "ro" read only in some cases 2012-07-02 10:36:55 +03:00
f_midi.c
f_ncm.c usb: gadget: use %pm to print mac addresses 2012-08-23 11:04:20 +03:00
f_obex.c
f_phonet.c netvm: propagate page->pfmemalloc from skb_alloc_page to skb 2012-07-31 18:42:46 -07:00
f_rndis.c USB 3.5-rc1 pull request 2012-05-22 15:50:46 -07:00
f_serial.c
f_sourcesink.c usb: gadget: move USB_BUFSIZ into global composite.h 2012-09-10 16:00:01 +03:00
f_subset.c usb: gadget: use %pm to print mac addresses 2012-08-23 11:04:20 +03:00
f_uac1.c
f_uac2.c usb: gadget: remove __devexit in f_uac2 2012-09-10 15:34:14 +03:00
f_uvc.c usb: gadget: uvc: Add super-speed support to UVC webcam gadget 2012-06-04 18:12:36 +03:00
f_uvc.h usb: gadget: uvc: Add super-speed support to UVC webcam gadget 2012-06-04 18:12:36 +03:00
file_storage.c usb: gadget: libcomposite: add epautoconf.c to libcomposite 2012-09-10 15:37:51 +03:00
fsl_mxc_udc.c usb: gadget: fsl_mxc_udc: do not depend on grouped clocks 2012-06-22 13:09:52 +03:00
fsl_qe_udc.c usb: gadget: fsl_qe_udc: Remove unneeded condition 2012-06-04 18:15:45 +03:00
fsl_qe_udc.h usb: gadget: Complete fsl qe/udc driver conversion 2012-06-12 13:32:29 +03:00
fsl_udc_core.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
fsl_usb2_udc.h usb: gadget: regression fix - usage of usb_ep 2012-06-04 18:24:49 +03:00
fusb300_udc.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
fusb300_udc.h
g_ffs.c usb: gadget: libcomposite: add epautoconf.c to libcomposite 2012-09-10 15:37:51 +03:00
g_zero.h
gadget_chips.c usb: gadget: move usb_gadget_controller_number() into a .c file and libcomposite 2012-09-10 16:12:59 +03:00
gadget_chips.h usb: gadget: move usb_gadget_controller_number() into a .c file and libcomposite 2012-09-10 16:12:59 +03:00
gmidi.c usb: gadget: use usb_string_ids_tab instead multiple usb_string_id() 2012-09-10 16:06:48 +03:00
goku_udc.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
goku_udc.h
hid.c usb: gadget: use usb_string_ids_tab instead multiple usb_string_id() 2012-09-10 16:06:48 +03:00
imx_udc.c usb: imx_udc.c: Use clk_prepare_enable/clk_disable_unprepare 2012-06-12 13:30:59 +03:00
imx_udc.h
inode.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
lpc32xx_udc.c usb: gadget: lpc32xx_udc.c: adjust inconsistent IS_ERR and PTR_ERR 2012-08-31 12:49:52 +03:00
m66592-udc.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
m66592-udc.h gadget/m66592: remove conditional compilation of clk code 2012-07-30 17:25:12 -07:00
mass_storage.c usb: gadget: libcomposite: add epautoconf.c to libcomposite 2012-09-10 15:37:51 +03:00
multi.c usb: gadget: libcomposite: add epautoconf.c to libcomposite 2012-09-10 15:37:51 +03:00
mv_u3d.h usb: gadget: mv: Add USB 3.0 device driver for Marvell PXA2128 chip. 2012-06-22 13:08:21 +03:00
mv_u3d_core.c usb: gadget: mv: Add USB 3.0 device driver for Marvell PXA2128 chip. 2012-06-22 13:08:21 +03:00
mv_udc.h
mv_udc_core.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
ncm.c usb: gadget: use usb_string_ids_tab instead multiple usb_string_id() 2012-09-10 16:06:48 +03:00
ndis.h
net2272.c
net2272.h
net2280.c
net2280.h
nokia.c usb: gadget: use usb_string_ids_tab instead multiple usb_string_id() 2012-09-10 16:06:48 +03:00
omap_udc.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
omap_udc.h
pch_udc.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
printer.c usb: gadget: make g_printer enumerate again 2012-09-10 16:11:31 +03:00
pxa25x_udc.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
pxa25x_udc.h usb: gadget: pxa25x: make it compile with debug again 2012-09-10 15:35:58 +03:00
pxa27x_udc.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
pxa27x_udc.h
r8a66597-udc.c gadget/r8a66597: remove conditional compilation of clk code 2012-07-30 17:25:12 -07:00
r8a66597-udc.h gadget/r8a66597: remove conditional compilation of clk code 2012-07-30 17:25:12 -07:00
rndis.c usb: gadget: use native print_hex_dump_bytes() 2012-08-23 11:04:18 +03:00
rndis.h
s3c-hsotg.c usb: gadget: s3c-hsotg: Use devm_clk_get function 2012-09-03 17:09:40 +03:00
s3c-hsotg.h
s3c-hsudc.c usb: gadget: s3c-hsudc: Replace 0 with NULL for pointers 2012-09-03 17:09:37 +03:00
s3c2410_udc.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
s3c2410_udc.h
serial.c usb: gadget: use usb_string_ids_tab instead multiple usb_string_id() 2012-09-10 16:06:48 +03:00
storage_common.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2012-08-01 10:26:23 -07:00
tcm_usb_gadget.c usb: gadget: initialize the strings in tcm_usb_gadget properly 2012-09-10 16:12:52 +03:00
tcm_usb_gadget.h usb: gadget: initialize the strings in tcm_usb_gadget properly 2012-09-10 16:12:52 +03:00
u_ether.c usb: gadget: get rid of USB_GADGET_{DUAL,SUPER}SPEED 2012-08-31 12:49:40 +03:00
u_ether.h
u_phonet.h
u_serial.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-05-22 19:22:50 -07:00
u_serial.h
u_uac1.c gadgetfs: clean up 2012-07-29 21:24:21 +04:00
u_uac1.h
udc-core.c usb: gadget: remove global variable composite in composite.c 2012-09-10 15:35:41 +03:00
usbstring.c usb: gadget: start with libcomposite 2012-09-10 15:36:04 +03:00
uvc.h usb: gadget: uvc: Add super-speed support to UVC webcam gadget 2012-06-04 18:12:36 +03:00
uvc_queue.c
uvc_queue.h
uvc_v4l2.c
uvc_video.c
webcam.c usb: gadget: use usb_string_ids_tab instead multiple usb_string_id() 2012-09-10 16:06:48 +03:00
zero.c usb: gadget: use usb_string_ids_tab instead multiple usb_string_id() 2012-09-10 16:06:48 +03:00