diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2013-03-18 09:52:57 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-04-03 14:43:33 +0300 |
commit | 60540ea2c51fa4feb475f689adce56297cb52010 (patch) | |
tree | a9e0d34def7bed8b18b590592d8623563bb20dde /drivers/usb/gadget/serial.c | |
parent | 81f886cb7a5157d1b6562084a2ed96328e39f288 (diff) | |
download | blackbird-obmc-linux-60540ea2c51fa4feb475f689adce56297cb52010.tar.gz blackbird-obmc-linux-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.c | 1 |
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" /*-------------------------------------------------------------------------*/ |