Merge "usb: gadget: f_mtp: Handle mtp os desc properly"
This commit is contained in:
commit
f827f291f0
1 changed files with 2 additions and 1 deletions
|
@ -1876,7 +1876,8 @@ struct usb_function *function_alloc_mtp_ptp(struct usb_function_instance *fi,
|
|||
dev->function.disable = mtp_function_disable;
|
||||
dev->function.setup = mtp_ctrlreq_configfs;
|
||||
dev->function.free_func = mtp_free;
|
||||
dev->is_ptp = mtp_config;
|
||||
dev->is_ptp = !mtp_config;
|
||||
fi->f = &dev->function;
|
||||
|
||||
return &dev->function;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue