diff options
author | Michal Nazarewicz <m.nazarewicz@samsung.com> | 2009-11-09 08:15:20 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 14:55:22 -0500 |
commit | d23b0f08d18fc42f26f6a0776c6d827eb35143a9 (patch) | |
tree | e6557975165865e43984045279e262d62b939dde /drivers/usb/gadget/file_storage.c | |
parent | 6648f29d3be2972a74ef8e29aa5d425ab4f1fc48 (diff) |
USB: g_mass_storage: Mass Storage Function created
The f_mass_storage.c has been changed into a composite function.
mass_storage.c file has been introduced which defines a
g_mass_storage gadget based on composite framework.
Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/file_storage.c')
-rw-r--r-- | drivers/usb/gadget/file_storage.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c index 7998402b1840..fca3407e48f2 100644 --- a/drivers/usb/gadget/file_storage.c +++ b/drivers/usb/gadget/file_storage.c | |||
@@ -594,10 +594,9 @@ static int populate_config_buf(struct usb_gadget *gadget, | |||
594 | 594 | ||
595 | if (gadget_is_dualspeed(gadget) && type == USB_DT_OTHER_SPEED_CONFIG) | 595 | if (gadget_is_dualspeed(gadget) && type == USB_DT_OTHER_SPEED_CONFIG) |
596 | speed = (USB_SPEED_FULL + USB_SPEED_HIGH) - speed; | 596 | speed = (USB_SPEED_FULL + USB_SPEED_HIGH) - speed; |
597 | if (gadget_is_dualspeed(gadget) && speed == USB_SPEED_HIGH) | 597 | function = gadget_is_dualspeed(gadget) && speed == USB_SPEED_HIGH |
598 | function = fsg_hs_function; | 598 | ? (const struct usb_descriptor_header **)fsg_hs_function |
599 | else | 599 | : (const struct usb_descriptor_header **)fsg_fs_function; |
600 | function = fsg_fs_function; | ||
601 | 600 | ||
602 | /* for now, don't advertise srp-only devices */ | 601 | /* for now, don't advertise srp-only devices */ |
603 | if (!gadget_is_otg(gadget)) | 602 | if (!gadget_is_otg(gadget)) |