aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/serial.c
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2013-03-18 09:52:57 +0100
committerFelipe Balbi <balbi@ti.com>2013-04-03 14:43:33 +0300
commit60540ea2c51fa4feb475f689adce56297cb52010 (patch)
treea9e0d34def7bed8b18b590592d8623563bb20dde /drivers/usb/gadget/serial.c
parentusb: gadget: nokia: remove unused include (diff)
downloadlinux-dev-60540ea2c51fa4feb475f689adce56297cb52010.tar.xz
linux-dev-60540ea2c51fa4feb475f689adce56297cb52010.zip
usb: gadget: f_serial: convert to new function interface with backward compatibility
Converting f_serial to the new function interface requires converting the f_serial's function code and its users. This patch converts the f_serial.c to the new function interface. The file is now compiled into a separate usb_f_serial.ko module. The old function interface is provided by means of 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> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/serial.c')
-rw-r--r--drivers/usb/gadget/serial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/serial.c b/drivers/usb/gadget/serial.c
index c48ca1eb5442..07c1e802f917 100644
--- a/drivers/usb/gadget/serial.c
+++ b/drivers/usb/gadget/serial.c
@@ -37,6 +37,7 @@
* a "gcc --combine ... part1.c part2.c part3.c ... " build would.
*/
#include "f_obex.c"
+#define USB_FSERIAL_INCLUDED
#include "f_serial.c"
/*-------------------------------------------------------------------------*/