31 #include <linux/kernel.h>
32 #include <linux/usb/ch9.h>
33 #include <linux/module.h>
37 #define DRIVER_DESC "Mass Storage Gadget"
38 #define DRIVER_VERSION "2009/09/11"
55 .bLength =
sizeof msg_device_desc,
64 .bNumConfigurations = 1,
68 .bLength =
sizeof otg_descriptor,
92 .strings = strings_dev,
107 static unsigned long msg_registered;
108 static void msg_cleanup(
void);
119 .thread_exits = msg_thread_exits,
127 if (gadget_is_otg(c->
cdev->gadget)) {
132 fsg_config_from_params(&
config, &mod_data);
137 return PTR_ERR(retp);
145 .label =
"Linux File-Backed Storage",
146 .bConfigurationValue = 1,
176 .name =
"g_mass_storage",
177 .dev = &msg_device_desc,
180 .strings = dev_strings,
188 static int __init msg_init(
void)
194 static void msg_cleanup(
void)