USB: gadget: file storage gadget cleanups
authorDavid Brownell <david-b@pacbell.net>
Thu, 2 Aug 2007 07:03:39 +0000 (00:03 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:04 +0000 (14:55 -0700)
commit2e806f67cc570d25395469a0ded0df8ffbd4d82f
tree7d1e64859244520348cd562558094ce9d82da4e5
parent51a0e85cd9b47e2e6332b40ea486cc1659d8a3ec
USB: gadget: file storage gadget cleanups

Clean up the file storage gadget, using newer APIs and conventions:

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

 - Remove many now-needless #includes

 - Use the DEBUG (from Kconfig+Makefile) and VERBOSE_DEBUG conventions.

 - Remove some "sparse" warnings (it still dislikes the __user annotations)

This gave only a minor object code shrinkage.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/file_storage.c