diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2014-10-16 13:33:27 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-05 13:36:09 -0600 |
commit | b85e9de9e818de0dcbc50b7b4242192eb6194855 (patch) | |
tree | 4e46fffc034ea985138adafcba9a0e7111c792da /drivers/usb/gadget/legacy/gmidi.c | |
parent | d23b4c3ee2d5cbdeaec9f8e7d8a9bdcc73836fb9 (diff) | |
download | linux-next-b85e9de9e818de0dcbc50b7b4242192eb6194855.tar.gz |
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>
Diffstat (limited to 'drivers/usb/gadget/legacy/gmidi.c')
-rw-r--r-- | drivers/usb/gadget/legacy/gmidi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/legacy/gmidi.c b/drivers/usb/gadget/legacy/gmidi.c index 3d696b86ff76..f704c5557d19 100644 --- a/drivers/usb/gadget/legacy/gmidi.c +++ b/drivers/usb/gadget/legacy/gmidi.c @@ -37,6 +37,7 @@ #include "gadget_chips.h" +#define USBF_MIDI_INCLUDED #include "f_midi.c" /*-------------------------------------------------------------------------*/ |