usb/gadget: f_mass_storage: convert to new function interface with backward compatibility
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Wed, 3 Jul 2013 12:40:41 +0000 (14:40 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:44:23 +0000 (11:44 +0900)
commitaf920a77ea6ea62c71784c950e5fc27bf682a2af
tree08752bc20ca98186be6cfacb89129ea45f576bc7
parentf486744a9e73431201a65b7290db8592c266a979
usb/gadget: f_mass_storage: convert to new function interface with backward compatibility

Converting mass storage to the new function interface requires converting
the USB mass storage's function code and its users.
This patch converts the f_mass_storage.c to the new function interface.
The file is now compiled into a separate usb_f_mass_storage.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>
drivers/usb/gadget/Kconfig
drivers/usb/gadget/Makefile
drivers/usb/gadget/acm_ms.c
drivers/usb/gadget/f_mass_storage.c
drivers/usb/gadget/f_mass_storage.h
drivers/usb/gadget/mass_storage.c
drivers/usb/gadget/multi.c