summaryrefslogtreecommitdiff
path: root/drivers/staging/tm6000/tm6000-regs.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-03-11 10:26:46 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-18 00:47:09 -0300
commit9afec493e2fe1a477305a09f933267d805fe4c8c (patch)
tree5d302db5d1fe8d8cc7ad5428b58cf5a5b04478bc /drivers/staging/tm6000/tm6000-regs.h
parent77012fb9954ebe355ce4ecfdaf9a0d5b88cb665b (diff)
V4L/DVB: tm6000: Replace all magic values by a register alias
Instead of using magic pairs of req/reg, replace them by the defined values. This patch were generated by the following script: 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_AVREG[_BIT]*, 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/tm6000/tm6000-regs.h')
0 files changed, 0 insertions, 0 deletions