projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06ed0de
)
usb: gadget: f_mass_storage: use defined constant instead of numeric value
author
Tal Shorer
<tal.shorer@gmail.com>
Fri, 6 Mar 2015 19:53:32 +0000
(21:53 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Wed, 11 Mar 2015 15:19:35 +0000
(10:19 -0500)
replace numeric value with TYPE_NO_LUN (defined in <scsi/scsi.h>)
Signed-off-by: Tal Shorer <tal.shorer@gmail.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_mass_storage.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/function/f_mass_storage.c
b/drivers/usb/gadget/function/f_mass_storage.c
index 811929cd4c9e21b7c59061375e4ad9de335e0c03..6d5ca2b2d05277dc82e63fb1bab69abc762533d2 100644
(file)
--- a/
drivers/usb/gadget/function/f_mass_storage.c
+++ b/
drivers/usb/gadget/function/f_mass_storage.c
@@
-1085,7
+1085,7
@@
static int do_inquiry(struct fsg_common *common, struct fsg_buffhd *bh)
if (!curlun) { /* Unsupported LUNs are okay */
common->bad_lun_okay = 1;
memset(buf, 0, 36);
- buf[0] =
0x7f;
/* Unsupported, no device-type */
+ buf[0] =
TYPE_NO_LUN;
/* Unsupported, no device-type */
buf[4] = 31; /* Additional length */
return 36;
}