usb: gadget: f_midi: convert to new function interface with backward compatibility
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 16 Oct 2014 11:33:27 +0000 (13:33 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 5 Nov 2014 19:36:09 +0000 (13:36 -0600)
commitb85e9de9e818de0dcbc50b7b4242192eb6194855
tree4e46fffc034ea985138adafcba9a0e7111c792da
parentd23b4c3ee2d5cbdeaec9f8e7d8a9bdcc73836fb9
usb: gadget: f_midi: convert to new function interface with backward compatibility

Converting midi to the new function interface requires converting
the USB midi's function code and its users.

This patch converts the f_midi.c to the new function interface.
The file can now be compiled into a separate usb_f_midi.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: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/Kconfig
drivers/usb/gadget/function/Makefile
drivers/usb/gadget/function/f_midi.c
drivers/usb/gadget/function/u_midi.h [new file with mode: 0644]
drivers/usb/gadget/legacy/gmidi.c