diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2013-05-28 11:15:53 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-06-10 18:58:06 +0400 |
commit | 8cedba7c73af1369599b1111639cfeb66fe13aaa (patch) | |
tree | a346c189d35884ec14469cb92db1ad8ef1b2da14 /drivers/usb/gadget/u_gether.h | |
parent | cf99e8c6898862a482f8ed65d18979fb1a51fbc1 (diff) | |
download | linux-8cedba7c73af1369599b1111639cfeb66fe13aaa.tar.xz |
usb: gadget: f_subset: convert to new function interface with backward compatibility
Converting ecm subset to the new function interface requires converting
the USB subset's function code and its users.
This patch converts the f_subset.c to the new function interface.
The file is now compiled into a separate usb_f_subset.ko module.
The old function interface is provided by means of a preprocessor
conditional directives. After all users are converted, the old interface
can be removed.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/u_gether.h')
-rw-r--r-- | drivers/usb/gadget/u_gether.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/usb/gadget/u_gether.h b/drivers/usb/gadget/u_gether.h new file mode 100644 index 000000000000..3a4a2bf61cdc --- /dev/null +++ b/drivers/usb/gadget/u_gether.h @@ -0,0 +1,27 @@ +/* + * u_gether.h + * + * Utility definitions for the subset function + * + * Copyright (c) 2013 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * + * Author: Andrzej Pietrasiewicz <andrzej.p@samsung.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef U_GETHER_H +#define U_GETHER_H + +#include <linux/usb/composite.h> + +struct f_gether_opts { + struct usb_function_instance func_inst; + struct net_device *net; + bool bound; +}; + +#endif /* U_GETHER_H */ |