projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
525fdeb
)
add ums by xzj
author
yangyun
<yangyun@rock-chips.com>
Thu, 23 Feb 2012 03:36:09 +0000
(11:36 +0800)
committer
yangyun
<yangyun@rock-chips.com>
Thu, 23 Feb 2012 03:36:09 +0000
(11:36 +0800)
drivers/usb/gadget/android.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/android.c
b/drivers/usb/gadget/android.c
index 6b40a29fe9cc44ac968fff20799962b01a2f27b0..1c3eb953cfb6cf39ef002c0188d73a7a3c59dbb8 100644
(file)
--- a/
drivers/usb/gadget/android.c
+++ b/
drivers/usb/gadget/android.c
@@
-538,8
+538,9
@@
static int mass_storage_function_init(struct android_usb_function *f,
if (!config)
return -ENOMEM;
- config->fsg.nluns =
1
;
+ config->fsg.nluns =
2
;
config->fsg.luns[0].removable = 1;
+ config->fsg.luns[1].removable = 1;
common = fsg_common_init(NULL, cdev, &config->fsg);
if (IS_ERR(common)) {
@@
-549,7
+550,8
@@
static int mass_storage_function_init(struct android_usb_function *f,
err = sysfs_create_link(&f->dev->kobj,
&common->luns[0].dev.kobj,
- "lun");
+ "lun0");
+ err = sysfs_create_link(&f->dev->kobj, &common->luns[1].dev.kobj,"lun1");
if (err) {
kfree(config);
return err;