uas: Allow uas_use_uas_driver to return usb-storage flags
authorHans de Goede <hdegoede@redhat.com>
Tue, 21 Apr 2015 09:20:30 +0000 (11:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Apr 2015 10:48:56 +0000 (12:48 +0200)
commita5011d44f0e1117a6db14b19b57c51f8be5673a0
treea97c92848993a966d7e05a82af0174eeda1ba42c
parentb787f68c36d49bb1d9236f403813641efa74a031
uas: Allow uas_use_uas_driver to return usb-storage flags

uas_use_uas_driver may set some US_FL_foo flags during detection, currently
these are stored in a local variable and then throw away, but these may be
of interest to the caller, so add an extra parameter to (optionally) return
the detected flags, and use this in the uas driver.

Cc: stable@vger.kernel.org # 3.16
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas-detect.h
drivers/usb/storage/uas.c
drivers/usb/storage/usb.c