Badhri Jagan Sridharan | eab46c4 | 2014-11-17 21:11:23 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Gadget Function Driver for PTP |
| 3 | * |
| 4 | * Copyright (C) 2014 Google, Inc. |
| 5 | * Author: Badhri Jagan Sridharan <badhri@android.com> |
| 6 | * |
| 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. |
| 10 | * |
| 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. |
| 15 | * |
| 16 | */ |
| 17 | |
| 18 | #include <linux/module.h> |
| 19 | #include <linux/types.h> |
| 20 | |
| 21 | #include <linux/configfs.h> |
| 22 | #include <linux/usb/composite.h> |
| 23 | |
| 24 | #include "f_mtp.h" |
| 25 | |
| 26 | static struct usb_function_instance *ptp_alloc_inst(void) |
| 27 | { |
| 28 | return alloc_inst_mtp_ptp(false); |
| 29 | } |
| 30 | |
| 31 | static struct usb_function *ptp_alloc(struct usb_function_instance *fi) |
| 32 | { |
| 33 | return function_alloc_mtp_ptp(fi, false); |
| 34 | } |
| 35 | |
| 36 | DECLARE_USB_FUNCTION_INIT(ptp, ptp_alloc_inst, ptp_alloc); |
| 37 | MODULE_LICENSE("GPL"); |
| 38 | MODULE_AUTHOR("Badhri Jagan Sridharan"); |