summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/ether.c
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2013-05-28 09:15:53 +0200
committerFelipe Balbi <balbi@ti.com>2013-06-10 17:58:06 +0300
commit8cedba7c73af1369599b1111639cfeb66fe13aaa (patch)
treea346c189d35884ec14469cb92db1ad8ef1b2da14 /drivers/usb/gadget/ether.c
parentcf99e8c6898862a482f8ed65d18979fb1a51fbc1 (diff)
downloadblackbird-obmc-linux-8cedba7c73af1369599b1111639cfeb66fe13aaa.tar.gz
blackbird-obmc-linux-8cedba7c73af1369599b1111639cfeb66fe13aaa.zip
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/ether.c')
-rw-r--r--drivers/usb/gadget/ether.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index 2078e6c227a1..31739662ad00 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -103,6 +103,7 @@ static inline bool has_rndis(void)
* a "gcc --combine ... part1.c part2.c part3.c ... " build would.
*/
#include "u_ecm.h"
+#define USB_FSUBSET_INCLUDED
#include "f_subset.c"
#ifdef USB_ETH_RNDIS
#include "f_rndis.c"
OpenPOWER on IntegriCloud