diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-03-11 08:26:45 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-17 23:47:12 -0400 |
commit | 2415a2c14ef5fde98d61e3af4c5ff6e019659799 (patch) | |
tree | 90f6b369a41139e772a58cfe71a8c6075abe6dcd /drivers/staging | |
parent | d9a724073633605def45be1f879a7406af469c87 (diff) |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/tm6000/tm6000-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/tm6000/tm6000-core.c b/drivers/staging/tm6000/tm6000-core.c index b9640d74b916..d9cade00bc99 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[] = { | |||
341 | { TM6010_REQ07_RC1_TRESHOLD, 0xd0 }, | 341 | { TM6010_REQ07_RC1_TRESHOLD, 0xd0 }, |
342 | { TM6010_REQ07_RC3_HSTART1, 0x88 }, | 342 | { TM6010_REQ07_RC3_HSTART1, 0x88 }, |
343 | { TM6010_REQ07_R3F_RESET, 0x00 }, /* End of the soft reset */ | 343 | { TM6010_REQ07_R3F_RESET, 0x00 }, /* End of the soft reset */ |
344 | { REQ_05_SET_GET_USBREG, 0x18, 0x00 }, | 344 | { TM6010_REQ05_R18_IMASK7, 0x00 }, |
345 | }; | 345 | }; |
346 | 346 | ||
347 | struct reg_init tm6010_init_tab[] = { | 347 | struct reg_init tm6010_init_tab[] = { |
@@ -414,7 +414,7 @@ struct reg_init tm6010_init_tab[] = { | |||
414 | { TM6010_REQ07_RC3_HSTART1, 0x88 }, | 414 | { TM6010_REQ07_RC3_HSTART1, 0x88 }, |
415 | { TM6010_REQ07_R3F_RESET, 0x00 }, | 415 | { TM6010_REQ07_R3F_RESET, 0x00 }, |
416 | 416 | ||
417 | { REQ_05_SET_GET_USBREG, 0x18, 0x00 }, | 417 | { TM6010_REQ05_R18_IMASK7, 0x00 }, |
418 | 418 | ||
419 | { TM6010_REQ07_RD8_IR_LEADER1, 0xaa }, | 419 | { TM6010_REQ07_RD8_IR_LEADER1, 0xaa }, |
420 | { TM6010_REQ07_RD8_IR_LEADER0, 0x30 }, | 420 | { TM6010_REQ07_RD8_IR_LEADER0, 0x30 }, |