diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2013-03-21 15:33:42 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-04-03 14:43:35 +0300 |
commit | 1d8fc2518c1cddef0902b0a2c51946732a0982fc (patch) | |
tree | 82c5c070b7fc699c7f1dad0de2ef37b000357ab9 /drivers/usb/gadget/serial.c | |
parent | 0b6a1e6ff7e62a1ab5a8924bffb12c17c183308a (diff) | |
download | op-kernel-dev-1d8fc2518c1cddef0902b0a2c51946732a0982fc.zip op-kernel-dev-1d8fc2518c1cddef0902b0a2c51946732a0982fc.tar.gz |
usb: gadget: f_obex: convert to new function interface with backward compatibility
Converting f_obex to the new function interface requires converting
the f_obex's function code and its users.
This patch converts the f_obex.c to the new function interface.
The file is now compiled into a separate usb_f_obex.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 9d215c4..664da64 100644 --- a/drivers/usb/gadget/serial.c +++ b/drivers/usb/gadget/serial.c @@ -36,6 +36,7 @@ * the runtime footprint, and giving us at least some parts of what * a "gcc --combine ... part1.c part2.c part3.c ... " build would. */ +#define USBF_OBEX_INCLUDED #include "f_obex.c" /*-------------------------------------------------------------------------*/ |