diff options
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-x | v4l/scripts/em28xx.pl | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/v4l/scripts/em28xx.pl b/v4l/scripts/em28xx.pl index 9a97def2a..98944ba79 100755 --- a/v4l/scripts/em28xx.pl +++ b/v4l/scripts/em28xx.pl @@ -27,19 +27,15 @@ while (<>) { next unless defined($id); - if (/USB_DEVICE.*0x([0-9a-fA-F]*).*0x([0-9a-fA-F]*).*driver_info.*(EM2820_BOARD_\w+)/ ) { + if (/USB_DEVICE.*0x([0-9a-fA-F]*).*0x([0-9a-fA-F]*)/ ) { $subvendor=$1; $subdevice=$2; - push @{$data{$3}->{subid}}, "$subvendor:$subdevice"; } - if (/USB_DEVICE.*0x([0-9a-fA-F]*).*0x([0-9a-fA-F]*).*driver_info.*(EM2800_BOARD_\w+)/ ) { - $subvendor=$1; - $subdevice=$2; - push @{$data{$3}->{subid}}, "$subvendor:$subdevice"; + if (/.*driver_info.*(EM28[\d]._BOARD_\w+)/ ) { + push @{$data{$1}->{subid}}, "$subvendor:$subdevice"; } - if (!defined($data{$id}) || !defined($data{$id}->{name})) { $data{$id}->{name} = $1 if (/\.name\s*=\s*\"([^\"]+)\"/); } |