From 79c85f918a71ac98bf0337ad3bee5509c4f31e53 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 23 Nov 2007 15:19:51 -0200 Subject: Improve parsing script From: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab --- v4l/scripts/em28xx.pl | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'v4l/scripts') 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*\"([^\"]+)\"/); } -- cgit v1.2.3