USB: gadget: android: Remove unused function android_usb_set_connected()
authorMike Lockwood <lockwood@android.com>
Mon, 28 Jun 2010 19:29:00 +0000 (15:29 -0400)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:08 +0000 (09:09 -0700)
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/android.c
include/linux/usb/android_composite.h

index 6e3c32e3f7e01412b92772ee93f6a055e0773fc5..7618a073de586a6744f8cef47afefb34a1e227b4 100644 (file)
@@ -110,16 +110,6 @@ static struct usb_device_descriptor device_desc = {
 static struct list_head _functions = LIST_HEAD_INIT(_functions);
 static int _registered_function_count = 0;
 
-void android_usb_set_connected(int connected)
-{
-       if (_android_dev && _android_dev->cdev && _android_dev->cdev->gadget) {
-               if (connected)
-                       usb_gadget_connect(_android_dev->cdev->gadget);
-               else
-                       usb_gadget_disconnect(_android_dev->cdev->gadget);
-       }
-}
-
 static struct android_usb_function *get_function(const char *name)
 {
        struct android_usb_function     *f;
index 50889ba138b9674d894b389e85b34c2bb3f5314a..ac09dcb71775f558f754001b9d4e5cbfe5dd2215 100644 (file)
@@ -88,8 +88,6 @@ struct usb_ether_platform_data {
        const char *vendorDescr;
 };
 
-extern void android_usb_set_connected(int on);
-
 extern void android_register_function(struct android_usb_function *f);
 
 extern void android_enable_function(struct usb_function *f, int enable);