diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2015-12-11 18:06:21 +0300 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-12-21 06:40:34 +0300 |
commit | dc8c46a5ae770d3d763353e786990bc415bc5560 (patch) | |
tree | 43e25f84abad80011899ab00935bd748c2155da7 /drivers/usb/gadget/function/tcm.h | |
parent | 08a1cb0f65fde6f0da1db77b847ea78dc3c102cb (diff) | |
download | linux-dc8c46a5ae770d3d763353e786990bc415bc5560.tar.xz |
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/function/tcm.h')
-rw-r--r-- | drivers/usb/gadget/function/tcm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/tcm.h b/drivers/usb/gadget/function/tcm.h index c2c3a0fd4a13..0b8ff6dc63ee 100644 --- a/drivers/usb/gadget/function/tcm.h +++ b/drivers/usb/gadget/function/tcm.h @@ -39,6 +39,8 @@ struct usbg_tpg { u32 gadget_connect; struct tcm_usbg_nexus *tpg_nexus; atomic_t tpg_port_count; + + struct usb_function_instance *fi; }; struct usbg_tport { |