diff options
author | Tal Shorer <tal.shorer@gmail.com> | 2015-03-06 14:53:32 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-03-11 11:19:35 -0400 |
commit | fddc26f573e28dde62013cd5d8d5c60aa85e74a4 (patch) | |
tree | 3025215031f67c3181712821d8d1b6c73bf1992d | |
parent | 06ed0de5188c9ef6553b2824b6cdd767ad46ece5 (diff) |
usb: gadget: f_mass_storage: use defined constant instead of numeric value
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>
-rw-r--r-- | drivers/usb/gadget/function/f_mass_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c index 811929cd4c9e..6d5ca2b2d052 100644 --- 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) | |||
1085 | if (!curlun) { /* Unsupported LUNs are okay */ | 1085 | if (!curlun) { /* Unsupported LUNs are okay */ |
1086 | common->bad_lun_okay = 1; | 1086 | common->bad_lun_okay = 1; |
1087 | memset(buf, 0, 36); | 1087 | memset(buf, 0, 36); |
1088 | buf[0] = 0x7f; /* Unsupported, no device-type */ | 1088 | buf[0] = TYPE_NO_LUN; /* Unsupported, no device-type */ |
1089 | buf[4] = 31; /* Additional length */ | 1089 | buf[4] = 31; /* Additional length */ |
1090 | return 36; | 1090 | return 36; |
1091 | } | 1091 | } |