mutex_unlock(&dev->mutex);
}
-static int functionfs_check_dev_callback(const char *dev_name)
+static void *functionfs_acquire_dev_callback(const char *dev_name)
{
return 0;
}
+static void functionfs_release_dev_callback(struct ffs_data *ffs_data)
+{
+}
struct adb_data {
bool opened;
{
struct android_dev *dev = _android_dev;
struct usb_gadget *gadget = cdev->gadget;
- int gcnum, id, ret;
+ int id, ret;
/*
* Start disconnected. Userspace will connect the gadget once
strings_dev[STRING_SERIAL_IDX].id = id;
device_desc.iSerialNumber = id;
- gcnum = usb_gadget_controller_number(gadget);
- if (gcnum >= 0)
- device_desc.bcdDevice = cpu_to_le16(0x0200 + gcnum);
- else {
- pr_warning("%s: controller '%s' not recognized\n",
- longname, gadget->name);
- device_desc.bcdDevice = __constant_cpu_to_le16(0x9999);
- }
-
usb_gadget_set_selfpowered(gadget);
dev->cdev = cdev;
dev->cdev = c->cdev;
dev->function.name = "accessory";
dev->function.strings = acc_strings,
- dev->function.descriptors = fs_acc_descs;
+ dev->function.fs_descriptors = fs_acc_descs;
dev->function.hs_descriptors = hs_acc_descs;
dev->function.bind = acc_function_bind;
dev->function.unbind = acc_function_unbind;
dev->cdev = c->cdev;
dev->function.name = "adb";
- dev->function.descriptors = fs_adb_descs;
+ dev->function.fs_descriptors = fs_adb_descs;
dev->function.hs_descriptors = hs_adb_descs;
dev->function.bind = adb_function_bind;
dev->function.unbind = adb_function_unbind;
hs_as_in_ep_desc.bEndpointAddress =
fs_as_in_ep_desc.bEndpointAddress;
- f->descriptors = fs_audio_desc;
+ f->fs_descriptors = fs_audio_desc;
f->hs_descriptors = hs_audio_desc;
for (i = 0, status = 0; i < IN_EP_REQ_COUNT && status == 0; i++) {
dev->function.name = "mtp";
dev->function.strings = mtp_strings;
if (ptp_config) {
- dev->function.descriptors = fs_ptp_descs;
+ dev->function.fs_descriptors = fs_ptp_descs;
dev->function.hs_descriptors = hs_ptp_descs;
} else {
- dev->function.descriptors = fs_mtp_descs;
+ dev->function.fs_descriptors = fs_mtp_descs;
dev->function.hs_descriptors = hs_mtp_descs;
}
dev->function.bind = mtp_function_bind;