aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/legacy/tcm_usb_gadget.c
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2015-12-11 16:06:21 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2015-12-20 19:40:34 -0800
commitdc8c46a5ae770d3d763353e786990bc415bc5560 (patch)
tree43e25f84abad80011899ab00935bd748c2155da7 /drivers/usb/gadget/legacy/tcm_usb_gadget.c
parentusb: gadget: tcm: factor out f_tcm (diff)
downloadlinux-dev-dc8c46a5ae770d3d763353e786990bc415bc5560.tar.xz
linux-dev-dc8c46a5ae770d3d763353e786990bc415bc5560.zip
usb: gadget: f_tcm: convert to new function interface with backward compatibility
Converting tcm to the new function interface requires converting USB tcm's function code and its users. This patch converts the f_tcm.c to the new function interface. The file can be now compiled into a separate module usb_f_tcm.ko. The old function interface is provided by means of preprocessor conditional directives. After all users are converted, the old interface can be removed. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/usb/gadget/legacy/tcm_usb_gadget.c')
-rw-r--r--drivers/usb/gadget/legacy/tcm_usb_gadget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/legacy/tcm_usb_gadget.c b/drivers/usb/gadget/legacy/tcm_usb_gadget.c
index e6c601ab212d..f042df490ee3 100644
--- a/drivers/usb/gadget/legacy/tcm_usb_gadget.c
+++ b/drivers/usb/gadget/legacy/tcm_usb_gadget.c
@@ -24,6 +24,7 @@
USB_GADGET_COMPOSITE_OPTIONS();
/* #include to be removed when new function registration interface is used */
+#define USBF_TCM_INCLUDED
#include "../function/f_tcm.c"
#define UAS_VENDOR_ID 0x0525 /* NetChip */