summaryrefslogtreecommitdiff
path: root/extras/usb_id/usb_id.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-12-29 05:54:44 +0100
committerKay Sievers <kay.sievers@vrfy.org>2008-12-29 05:54:44 +0100
commite6fa87a11f61548f5442ec3c76b44ce6b25184cc (patch)
tree5368edee3857ce9bf3a1bb1211a19c31a6b3ecb9 /extras/usb_id/usb_id.c
parent12dda308d9aed677a6cceb9d6a4c6b831987dcd6 (diff)
usb_id: add "image" class
Diffstat (limited to 'extras/usb_id/usb_id.c')
-rw-r--r--extras/usb_id/usb_id.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/extras/usb_id/usb_id.c b/extras/usb_id/usb_id.c
index 492484da39..28352eb08a 100644
--- a/extras/usb_id/usb_id.c
+++ b/extras/usb_id/usb_id.c
@@ -54,22 +54,24 @@ static void set_usb_iftype(char *to, int if_class_num, size_t len)
case 1:
type = "audio";
break;
+ case 2: /* CDC-Control */
+ break;
case 3:
type = "hid";
break;
+ case 5: /* Physical */
+ break;
+ case 6:
+ type = "image";
+ break;
case 7:
type = "printer";
break;
case 8:
type = "storage";
break;
- case 2: /* CDC-Control */
- break;
- case 5: /* Physical */
- break;
- case 6: /* Image */
- break;
- case 9: /* HUB */
+ case 9:
+ type = "hub";
break;
case 0x0a: /* CDC-Data */
break;
@@ -84,7 +86,7 @@ static void set_usb_iftype(char *to, int if_class_num, size_t len)
break;
case 0xe0: /* Wireless Controller */
break;
- case 0xf2: /* Application-specific */
+ case 0xfe: /* Application-specific */
break;
case 0xff: /* Vendor-specific */
break;