2 * Gadget Function Driver for PTP
4 * Copyright (C) 2014 Google, Inc.
5 * Author: Badhri Jagan Sridharan <badhri@android.com>
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and
9 * may be copied, distributed, and modified under those terms.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
18 #include <linux/module.h>
19 #include <linux/types.h>
21 #include <linux/configfs.h>
22 #include <linux/usb/composite.h>
26 static struct usb_function_instance *ptp_alloc_inst(void)
28 return alloc_inst_mtp_ptp(false);
31 static struct usb_function *ptp_alloc(struct usb_function_instance *fi)
33 return function_alloc_mtp_ptp(fi, false);
36 DECLARE_USB_FUNCTION_INIT(ptp, ptp_alloc_inst, ptp_alloc);
37 MODULE_LICENSE("GPL");
38 MODULE_AUTHOR("Badhri Jagan Sridharan");