Commit af1a58ca authored by Andrzej Pietrasiewicz's avatar Andrzej Pietrasiewicz Committed by Felipe Balbi

usb: gadget: f_uac1: prepare for separate compilation

Integrating configfs requires converting f_uac1 to new function interface,
which in turn requires converting it to the new function interface,
which involves separate compilation of f_uac1.c into usb_f_uac1.ko.
u_uac1.c contains some module parameters. After this patch is applied
they are still a part of the resulting g_audio.ko, but can be guarded
with a compatiblity flag which will be removed when no users of the old
function interface of f_uac1 are left.
Tested-by: default avatarSebastian Reimers <sebastian.reimers@googlemail.com>
Signed-off-by: default avatarAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent f73db69f
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/atomic.h> #include <linux/atomic.h>
#include "u_uac1.h" #include "u_uac1.h"
#include "u_uac1.c"
#define OUT_EP_MAX_PACKET_SIZE 200 #define OUT_EP_MAX_PACKET_SIZE 200
static int req_buf_size = OUT_EP_MAX_PACKET_SIZE; static int req_buf_size = OUT_EP_MAX_PACKET_SIZE;
......
...@@ -81,7 +81,6 @@ static struct usb_function *f_uac2; ...@@ -81,7 +81,6 @@ static struct usb_function *f_uac2;
#ifdef CONFIG_GADGET_UAC1 #ifdef CONFIG_GADGET_UAC1
#include "u_uac1.h" #include "u_uac1.h"
#include "u_uac1.c"
#include "f_uac1.c" #include "f_uac1.c"
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment