USB: gadget: ethernet gadget cleanups, shrinkage
authorDavid Brownell <david-b@pacbell.net>
Thu, 2 Aug 2007 07:00:38 +0000 (00:00 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:03 +0000 (14:55 -0700)
commit0cf4f2de0a0f4100795f38ef894d4910678c74f8
tree554ecbfd622ba87343203b0b5faaa71292550707
parenta4e3ef5597e26dad006544d38b9ab6ff42382b76
USB: gadget: ethernet gadget cleanups, shrinkage

Clean up the ethernet gadget, using newer APIs and conventions:

 - gadget_is_dualspeed() and gadget_is_otg() ... #ifdef removal

 - Remove many now-needless #includes

 - Use the VERBOSE_DEBUG convention

 - Minor whitespace fixes.

 - Fix a warning from "sparse".

Surprisingly, this saved about 2K of code (16%) on a fullspeed-only
ARMv4 platform.  I'm bit puzzled by that (it's so much!), but approve
of the result.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/ether.c