[systemd-commits] hwdb/20-usb-classes.hwdb hwdb/ids-update.pl

Kay Sievers kay at kemper.freedesktop.org
Fri Nov 9 06:24:23 PST 2012


 hwdb/20-usb-classes.hwdb |    9 ---------
 hwdb/ids-update.pl       |    7 +++++--
 2 files changed, 5 insertions(+), 11 deletions(-)

New commits:
commit 09d8f5d757515122d7b726218e249621e564157c
Author: Kay Sievers <kay at vrfy.org>
Date:   Fri Nov 9 15:23:41 2012 +0100

    udev: hwdb - update usb class descriptions

diff --git a/hwdb/20-usb-classes.hwdb b/hwdb/20-usb-classes.hwdb
index 1ab4a84..064cf9b 100644
--- a/hwdb/20-usb-classes.hwdb
+++ b/hwdb/20-usb-classes.hwdb
@@ -2,9 +2,6 @@
 #
 # Data imported and updated from: http://www.linux-usb.org/usb.ids
 
-usb:v*p*d*dc00*
- ID_USB_CLASS_FROM_DATABASE=(Defined at Interface level)
-
 usb:v*p*d*dc01*
  ID_USB_CLASS_FROM_DATABASE=Audio
 
@@ -86,9 +83,6 @@ usb:v*p*d*dc02dsc0Cdp07*
 usb:v*p*d*dc03*
  ID_USB_CLASS_FROM_DATABASE=Human Interface Device
 
-usb:v*p*d*dc03dsc00*
- ID_USB_SUBCLASS_FROM_DATABASE=No Subclass
-
 usb:v*p*d*dc03dsc00dp01*
  ID_USB_PROTOCOL_FROM_DATABASE=Keyboard
 
@@ -248,9 +242,6 @@ usb:v*p*d*dc0D*
 usb:v*p*d*dc0E*
  ID_USB_CLASS_FROM_DATABASE=Video
 
-usb:v*p*d*dc0Edsc00*
- ID_USB_SUBCLASS_FROM_DATABASE=Undefined
-
 usb:v*p*d*dc0Edsc01*
  ID_USB_SUBCLASS_FROM_DATABASE=Video Control
 
diff --git a/hwdb/ids-update.pl b/hwdb/ids-update.pl
index 96db87d..c96c95f 100755
--- a/hwdb/ids-update.pl
+++ b/hwdb/ids-update.pl
@@ -55,10 +55,10 @@ sub usb_classes {
                 $line =~ m/^C\ ([0-9a-f]{2})\s*(.*)$/;
                 if (defined $1) {
                         $class = uc $1;
-                        my $text = $2;
-                        if ($text =~ m/^(\?|None|Unused)$/) {
+                        if ($class =~ m/^00$/) {
                                 next;
                         }
+                        my $text = $2;
                         print(OUT "\n");
                         print(OUT "usb:v*p*d*dc" . $class . "*\n");
                         print(OUT " ID_USB_CLASS_FROM_DATABASE=" . $text . "\n");
@@ -74,6 +74,9 @@ sub usb_classes {
                 $line =~ m/^\t([0-9a-f]{2})\s*(.*)$/;
                 if (defined $1) {
                         $subclass = uc $1;
+                        if ($subclass =~ m/^00$/) {
+                                next;
+                        }
                         my $text = $2;
                         if ($text =~ m/^(\?|None|Unused)$/) {
                                 next;



More information about the systemd-commits mailing list