]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: tm6000: Replace all Req 8 group of regs with another naming convention
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 11 Mar 2010 13:26:46 +0000 (10:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:47:08 +0000 (00:47 -0300)
commit117d44dd4b6405454a98e7485d457f7b172990fd
treefd3d3f83afb588b5466e97611aa345dd72777797
parente21535426568527701c3343bf86050c44ab0bbf9
V4L/DVB: tm6000: Replace all Req 8 group of regs with another naming convention

According with the original patch that added the register names, those
are related to tm6010, so name it properly as such. Also, clearly
indicates when a register belongs to Request 0x08 and add its register
value at the name. This makes easier to double check if the proper
register is used along the driver.

This patch were made with the help of this simple perl script, applied
over the definitions of the last register groups:

if (m/define (TM6000_)([^\s]+)\s+0x([A-F0-9].)/) { $name=$2;
$val=$3; printf "s,$1$2,TM6010_REQ08_R%s_%s,g\n", $val, $name; }

And were manually adjusted to fix a few minor issues.

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