diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2013-10-09 04:06:01 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-10-10 11:24:04 -0400 |
commit | e5eaa0dc4866181aff655ef3f94cd990172b751f (patch) | |
tree | 4209782f1dd0deef8cdd1da46eee9fca1441c672 /drivers/usb/gadget/multi.c | |
parent | 5de862d73b2c1b3fbb0ac8b45eb496d77347d1b8 (diff) |
usb: gadget: f_mass_storage: convert to new function interface with backward compatibility
Converting mass storage to the new function interface requires converting
the USB mass storage's function code and its users.
This patch converts the f_mass_storage.c to the new function interface.
The file is now compiled into a separate usb_f_mass_storage.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.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/multi.c')
-rw-r--r-- | drivers/usb/gadget/multi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c index 6867d9dbbca4..42a5bed75388 100644 --- a/drivers/usb/gadget/multi.c +++ b/drivers/usb/gadget/multi.c | |||
@@ -41,6 +41,7 @@ MODULE_LICENSE("GPL"); | |||
41 | * the runtime footprint, and giving us at least some parts of what | 41 | * the runtime footprint, and giving us at least some parts of what |
42 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. | 42 | * a "gcc --combine ... part1.c part2.c part3.c ... " build would. |
43 | */ | 43 | */ |
44 | #define USB_FMS_INCLUDED | ||
44 | #include "f_mass_storage.c" | 45 | #include "f_mass_storage.c" |
45 | 46 | ||
46 | #define USBF_ECM_INCLUDED | 47 | #define USBF_ECM_INCLUDED |