c05564c4d8
Android 13
27 lines
555 B
C
Executable file
27 lines
555 B
C
Executable file
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2018 MediaTek Inc.
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/configfs.h>
|
|
#include <linux/usb/composite.h>
|
|
|
|
#include "f_mtp.h"
|
|
|
|
static struct usb_function_instance *ptp_alloc_inst(void)
|
|
{
|
|
return alloc_inst_mtp_ptp(false);
|
|
}
|
|
|
|
static struct usb_function *ptp_alloc(struct usb_function_instance *fi)
|
|
{
|
|
return function_alloc_mtp_ptp(fi, false);
|
|
}
|
|
|
|
DECLARE_USB_FUNCTION_INIT(ptp, ptp_alloc_inst, ptp_alloc);
|
|
MODULE_LICENSE("GPL");
|
|
MODULE_AUTHOR("Badhri Jagan Sridharan");
|