mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
USB: gadget: android: Remove unused function android_usb_set_connected()
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
committed by
Colin Cross
parent
136826b4f1
commit
d620052f3e
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user