aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2012-05-26 19:32:39 -0400
committerFelipe Balbi <balbi@ti.com>2012-06-04 11:11:35 -0400
commitfa84c57516f6da93ebc2601348043e9bcb7b4b4d (patch)
tree3e6e5362d18c7adf813890153204b8705bdad58b /drivers/usb/gadget
parent338edabcd879320f0f86cc701161b95277be6b5d (diff)
usb: gadget: f_mass_storage: change default value of the removable parameter
This commit changes the default value of the removable module parameter from ā€œyā€ to ā€œnā€. This comes with line with file_storag's default and seems to be a better default. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/f_mass_storage.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c
index f67b453740bd..72116fa49ffb 100644
--- a/drivers/usb/gadget/f_mass_storage.c
+++ b/drivers/usb/gadget/f_mass_storage.c
@@ -124,7 +124,7 @@
124 * backing storage. 124 * backing storage.
125 * ro=b[,b...] Default false, boolean for read-only access. 125 * ro=b[,b...] Default false, boolean for read-only access.
126 * removable=b[,b...] 126 * removable=b[,b...]
127 * Default true, boolean for removable media. 127 * Default false, boolean for removable media.
128 * cdrom=b[,b...] Default false, boolean for whether to emulate 128 * cdrom=b[,b...] Default false, boolean for whether to emulate
129 * a CD-ROM drive. 129 * a CD-ROM drive.
130 * nofua=b[,b...] Default false, booleans for ignore FUA flag 130 * nofua=b[,b...] Default false, booleans for ignore FUA flag
@@ -3167,8 +3167,7 @@ fsg_config_from_params(struct fsg_config *cfg,
3167 for (i = 0, lun = cfg->luns; i < cfg->nluns; ++i, ++lun) { 3167 for (i = 0, lun = cfg->luns; i < cfg->nluns; ++i, ++lun) {
3168 lun->ro = !!params->ro[i]; 3168 lun->ro = !!params->ro[i];
3169 lun->cdrom = !!params->cdrom[i]; 3169 lun->cdrom = !!params->cdrom[i];
3170 lun->removable = /* Removable by default */ 3170 lun->removable = !!params->removable[i];
3171 params->removable_count <= i || params->removable[i];
3172 lun->filename = 3171 lun->filename =
3173 params->file_count > i && params->file[i][0] 3172 params->file_count > i && params->file[i][0]
3174 ? params->file[i] 3173 ? params->file[i]
@@ -3203,4 +3202,3 @@ fsg_common_from_params(struct fsg_common *common,
3203 fsg_config_from_params(&cfg, params); 3202 fsg_config_from_params(&cfg, params);
3204 return fsg_common_init(common, cdev, &cfg); 3203 return fsg_common_init(common, cdev, &cfg);
3205} 3204}
3206