From: Mauro Carvalho Chehab Date: Thu, 11 Mar 2010 13:26:45 +0000 (-0300) Subject: V4L/DVB: tm6000: replace occurences of req05 magic by a naming alias X-Git-Tag: v2.6.35-rc1~480^2~355 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2415a2c14ef5fde98d61e3af4c5ff6e019659799;p=pandora-kernel.git 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 --- Reading git-diff-tree failed