summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/f_mass_storage.h
diff options
context:
space:
mode:
authorPhilipp Gesang <philipp.gesang@intra2net.com>2016-08-01 18:04:19 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-08-25 12:13:13 +0300
commit6ac47090eef0c4358b04a974c4a5ac3d9bf44f79 (patch)
tree2b2f8a6f6a25fc182a3f5042c00c8532d03f689e /drivers/usb/gadget/function/f_mass_storage.h
parentf652191be3f6bc997bbaf9bd4e8ec6dc96f44433 (diff)
downloadlinux-6ac47090eef0c4358b04a974c4a5ac3d9bf44f79.tar.xz
usb: gadget: Add per-lun inquiry string
Introduce an attribute "inquiry_string" to the lun. In some environments, e. g. BIOS boot menus, the inquiry string is the only information about devices presented to the user. The default string depends on the "cdrom" bit of the first lun as well as the kernel version and allows no further customization. So without access to the client it is not obvious which gadget is active at a given point and what any of the available luns might contain. If "inquiry_string" is ignored or set to the empty string, the old behavior is preserved. Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/function/f_mass_storage.h')
-rw-r--r--drivers/usb/gadget/function/f_mass_storage.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/f_mass_storage.h b/drivers/usb/gadget/function/f_mass_storage.h
index b6a9918eaefb..d3902313b8ac 100644
--- a/drivers/usb/gadget/function/f_mass_storage.h
+++ b/drivers/usb/gadget/function/f_mass_storage.h
@@ -100,6 +100,7 @@ struct fsg_lun_config {
char removable;
char cdrom;
char nofua;
+ char inquiry_string[INQUIRY_STRING_LEN];
};
struct fsg_config {