V4L/DVB: tm6000: replace occurences of req05 magic by a naming alias
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:12 +0000 (00:47 -0300)
commit2415a2c14ef5fde98d61e3af4c5ff6e019659799
tree90f6b369a41139e772a58cfe71a8c6075abe6dcd
parentd9a724073633605def45be1f879a7406af469c87
V4L/DVB: tm6000: replace occurences of req05 magic by a naming alias

Yet another naming replace magic thanks to perl scripts. This time, it
is done with:

cat tm6000-regs.h |perl -ne 'if (m/(TM6010_REQ[^\s]+)\s+0x([a-f0-9]+)\,
0x([a-f0-9]+)/) { $name="$1"; $req=$2; $val=$3; printf
"s/REQ_${req}_SET_GET_USBREG, 0x[0]*$3,/$1,/\n" }'  >a; for i in tm*.c;
do sed -f a $i >b && mv b $i; done

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