]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58f87434fa1039e70fe1609ba456447149f0bddb
tree43e25f84abad80011899ab00935bd748c2155da7
parent2eb73240e58ecf2f15fe3622cc4a5d5c17f23166
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