V4L/DVB: tm6000: Replace naming convention for registers of req 05 group
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 11 Mar 2010 13:26:45 +0000 (10:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:47:10 +0000 (00:47 -0300)
commitf7d110c68c7d0fe1de567ea86194fb405d6a43a6
treea96926aec6febf412a028fcfd0b49b377201b246
parent9afec493e2fe1a477305a09f933267d805fe4c8c
V4L/DVB: tm6000: Replace naming convention for registers of req 05 group

After looking at the "magic" registers, it is clear that usb registers
belong to request 5.

Replace them with this script:

cat /tmp/reg3 |perl -ne 'if (m/define (TM6000_U_)([^\s]+)\s+0x([A-F0-9].)/) { \
$name=$2; $val=$3; printf "s,$1$2,TM6010_REQ05_R%s_%s,g\n", $val, $name; }' >a;
sed -f a tm6000-regs.h >b; mv b tm6000-regs.h

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-regs.h