]> git.karo-electronics.de Git - linux-beck.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)
commitc4bccf5e780a1e32807530d6b4b0624f14346cff
treefd3d3f83afb588b5466e97611aa345dd72777797
parentb8e286260e97be4bb245041ae63b9565922246c2
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