usb: gadget: f_tcm: convert to new function interface with backward compatibility
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Fri, 11 Dec 2015 15:06:21 +0000 (16:06 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 21 Dec 2015 03:40:34 +0000 (19:40 -0800)
commitdc8c46a5ae770d3d763353e786990bc415bc5560
tree43e25f84abad80011899ab00935bd748c2155da7
parent08a1cb0f65fde6f0da1db77b847ea78dc3c102cb
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>
drivers/usb/gadget/Kconfig
drivers/usb/gadget/function/Makefile
drivers/usb/gadget/function/f_tcm.c
drivers/usb/gadget/function/tcm.h
drivers/usb/gadget/function/u_tcm.h [new file with mode: 0644]
drivers/usb/gadget/legacy/tcm_usb_gadget.c