]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee5e18e4063ac9648591d7a41172a4d746f940b7
tree554ecbfd622ba87343203b0b5faaa71292550707
parent0c317fdf09c4eaa5ed7ff884fb4d1e256de9dce7
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