1
linux/drivers/usb/gadget
David Brownell a4e3ef5597 USB: gadget: gadget_is_{dualspeed,otg} predicates and cleanup
This adds two small inlines to the gadget stack, which will
often evaluate to compile-time constants.  That can help
shrink object code and remove #ifdeffery.

 - gadget_is_dualspeed(), currently always a compile-time
   constant (depending on which controller is selected).

 - gadget_is_otg(), usually a compile time "false", but this
   is a runtime test if the platform enables OTG (since it's
   reasonable to populate boards with different USB sockets).

It also updates two peripheral controller drivers to use these:

 - fsl_usb2_udc, mostly OTG-related bugfixes:  non-OTG devices
   must follow the rules about drawing VBUS power, and OTG ones
   need to reject invalid SET_FEATURE requests.

 - omap_udc, just scrubbing a bit of #ifdeffery.

And also gadgetfs, which lost some #ifdefs and moved to a more
standard handling of DEBUG and VERBOSE_DEBUG.

The main benefits come from patches which will follow.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-10-12 14:55:03 -07:00
..
amd5536udc.c USB: amd5536 UDC driver (in GEODE southbridge) 2007-07-19 17:46:05 -07:00
amd5536udc.h USB: amd5536 UDC driver (in GEODE southbridge) 2007-07-19 17:46:05 -07:00
at91_udc.c
at91_udc.h
config.c USB: "sparse" cleanups for usb gadgets 2007-07-30 13:27:47 -07:00
dummy_hcd.c USB: remove DEBUG definition from dummy_hcd 2007-08-22 14:27:47 -07:00
epautoconf.c USB: "sparse" cleanups for usb gadgets 2007-07-30 13:27:47 -07:00
ether.c [NET]: Nuke SET_MODULE_OWNER macro. 2007-10-10 16:51:13 -07:00
file_storage.c USB: g_file_storage: fix bug in DMA buffer handling 2007-08-22 14:27:59 -07:00
fsl_usb2_udc.c USB: gadget: gadget_is_{dualspeed,otg} predicates and cleanup 2007-10-12 14:55:03 -07:00
fsl_usb2_udc.h
gadget_chips.h USB: m66592-udc: fixes some problems 2007-07-19 17:46:05 -07:00
gmidi.c
goku_udc.c
goku_udc.h
inode.c USB: gadget: gadget_is_{dualspeed,otg} predicates and cleanup 2007-10-12 14:55:03 -07:00
Kconfig USB: m66592-udc: fixes some problems 2007-07-19 17:46:05 -07:00
lh7a40x_udc.c
lh7a40x_udc.h
m66592-udc.c USB: "sparse" cleanups for usb gadgets 2007-07-30 13:27:47 -07:00
m66592-udc.h USB: m66592-udc: fixes some problems 2007-07-19 17:46:05 -07:00
Makefile USB: amd5536 UDC driver (in GEODE southbridge) 2007-07-19 17:46:05 -07:00
ndis.h
net2280.c
net2280.h
omap_udc.c USB: gadget: gadget_is_{dualspeed,otg} predicates and cleanup 2007-10-12 14:55:03 -07:00
omap_udc.h
pxa2xx_udc.c USB: px2xx_udc bugfix, missing check for gpio_pullup 2007-08-22 14:27:43 -07:00
pxa2xx_udc.h
rndis.c
rndis.h
s3c2410_udc.c
s3c2410_udc.h
serial.c USB: fix serial gadget ACM breakage 2007-09-11 07:48:16 -07:00
usbstring.c
zero.c USB: "sparse" cleanups for usb gadgets 2007-07-30 13:27:47 -07:00