This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-dvb.git tree:

Subject: V4L/DVB: tm6000: replace occurences of req05 magic by a naming alias
Author:  Mauro Carvalho Chehab <mche...@redhat.com>
Date:    Thu Mar 11 10:26:45 2010 -0300

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 <mche...@redhat.com>

 drivers/staging/tm6000/tm6000-core.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/v4l-dvb.git?a=commitdiff;h=b1bcdcbcb99a4a7e1bfc14d4402469339b1f5c20

diff --git a/drivers/staging/tm6000/tm6000-core.c 
b/drivers/staging/tm6000/tm6000-core.c
index b9640d7..d9cade0 100644
--- a/drivers/staging/tm6000/tm6000-core.c
+++ b/drivers/staging/tm6000/tm6000-core.c
@@ -341,7 +341,7 @@ struct reg_init tm6000_init_tab[] = {
        { TM6010_REQ07_RC1_TRESHOLD, 0xd0 },
        { TM6010_REQ07_RC3_HSTART1, 0x88 },
        { TM6010_REQ07_R3F_RESET, 0x00 },               /* End of the soft 
reset */
-       { REQ_05_SET_GET_USBREG, 0x18, 0x00 },
+       { TM6010_REQ05_R18_IMASK7, 0x00 },
 };
 
 struct reg_init tm6010_init_tab[] = {
@@ -414,7 +414,7 @@ struct reg_init tm6010_init_tab[] = {
        { TM6010_REQ07_RC3_HSTART1, 0x88 },
        { TM6010_REQ07_R3F_RESET, 0x00 },
 
-       { REQ_05_SET_GET_USBREG, 0x18, 0x00 },
+       { TM6010_REQ05_R18_IMASK7, 0x00 },
 
        { TM6010_REQ07_RD8_IR_LEADER1, 0xaa },
        { TM6010_REQ07_RD8_IR_LEADER0, 0x30 },

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to