summaryrefslogtreecommitdiff
path: root/v4l/scripts
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-11-23 15:19:51 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-11-23 15:19:51 -0200
commit79c85f918a71ac98bf0337ad3bee5509c4f31e53 (patch)
treecd17bce4ad15ed7507dc39399cec50b7a51afc82 /v4l/scripts
parent2fd0c62f1dc22eaf95fd7aa0738cd6fea481e194 (diff)
downloadmediapointer-dvb-s2-79c85f918a71ac98bf0337ad3bee5509c4f31e53.tar.gz
mediapointer-dvb-s2-79c85f918a71ac98bf0337ad3bee5509c4f31e53.tar.bz2
Improve parsing script
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-xv4l/scripts/em28xx.pl10
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*\"([^\"]+)\"/);
}