usb: gadget: android: Update android gadget driver
authorBenoit Goby <benoit@android.com>
Wed, 20 Apr 2011 03:37:33 +0000 (20:37 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:38:41 +0000 (21:38 -0800)
commit63fc2625d029bb01844f3b6cd4510cb1fffcac27
tree7a3748f7b3f7d0b0a770f46314512f60f4e4fdcf
parentd74a4a005ef4fd02a5fef4e7565fc7c09fad1136
usb: gadget: android: Update android gadget driver

* Functions and the device descriptor are configured from user space:
echo 0       > /sys/class/android_usb/android0/enable
echo adb,acm > /sys/class/android_usb/android0/functions
echo 2       > /sys/class/android_usb/android0/f_acm/instances
echo 1       > /sys/class/android_usb/android0/enable

* Driver does not require platform data anymore

* Moved function initialization to android.c instead of each
function file

* Replaced switches by uevents

Signed-off-by: Benoit Goby <benoit@android.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
Change-Id: If5ad9267c111ad0a442f0d87a0d31082dc5381b6
14 files changed:
drivers/usb/gadget/Kconfig
drivers/usb/gadget/Makefile
drivers/usb/gadget/android.c
drivers/usb/gadget/composite.c
drivers/usb/gadget/f_accessory.c
drivers/usb/gadget/f_acm.c
drivers/usb/gadget/f_adb.c
drivers/usb/gadget/f_mass_storage.c
drivers/usb/gadget/f_mtp.c
drivers/usb/gadget/f_rndis.c
drivers/usb/gadget/u_ether.h
drivers/usb/gadget/u_serial.c
include/linux/usb/android_composite.h [deleted file]
include/linux/usb/composite.h