summaryrefslogtreecommitdiff
path: root/v4l/scripts/usbvision.pl
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/scripts/usbvision.pl')
-rwxr-xr-xv4l/scripts/usbvision.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/v4l/scripts/usbvision.pl b/v4l/scripts/usbvision.pl
index 3976e8bd1..b31df4f78 100755
--- a/v4l/scripts/usbvision.pl
+++ b/v4l/scripts/usbvision.pl
@@ -20,13 +20,15 @@ while (<>) {
next unless defined($id);
- if (/USB_DEVICE.*0x([0-9a-fA-F]*).*0x([0-9a-fA-F]*).*driver_info\s*=\s*([\w\d_]+)/)
-{
+ if (/USB_DEVICE.*0x([0-9a-fA-F]*).*0x([0-9a-fA-F]*).*/)
+ {
$subvendor=$1;
$subdevice=$2;
- push @{$data{$3}->{subid}}, "$subvendor:$subdevice";
}
-
+ if(/driver_info\s*=\s*([\w\d_]+)/)
+ {
+ push @{$data{$1}->{subid}}, "$subvendor:$subdevice";
+ }
if (!defined($data{$id}) || !defined($data{$id}->{name})) {
$data{$id}->{name} = $1 if (/\.ModelString\s*=\s*\"([^\"]+)\"/);
}