diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2014-07-22 19:58:30 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-08-20 21:04:16 +0200 |
commit | f8f93d244afad804e09595fcb14320fe2896fef5 (patch) | |
tree | bb6e0e0aca769fa559481cc10f84c24a98cfebc7 /drivers/usb/gadget/legacy/audio.c | |
parent | usb: gadget: audio: Use container_of to free audio_dev (diff) | |
download | linux-f8f93d244afad804e09595fcb14320fe2896fef5.tar.xz linux-f8f93d244afad804e09595fcb14320fe2896fef5.zip |
usb: gadget: f_uac2: convert to new function interface with backward compatibility
Converting uac2 to the new function interface requires converting
the USB uac2's function code and its users.
This patch converts the f_uac2.c to the new function interface.
The file is now compiled into a separate usb_f_uac2.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.
Tested-by: Sebastian Reimers <sebastian.reimers@googlemail.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/legacy/audio.c')
-rw-r--r-- | drivers/usb/gadget/legacy/audio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/legacy/audio.c b/drivers/usb/gadget/legacy/audio.c index 3c2328316c05..a41316bb436a 100644 --- a/drivers/usb/gadget/legacy/audio.c +++ b/drivers/usb/gadget/legacy/audio.c @@ -45,6 +45,7 @@ static struct usb_gadget_strings *audio_strings[] = { #include "u_uac1.c" #include "f_uac1.c" #else +#define USB_FUAC2_INCLUDED #include "f_uac2.c" #endif |