]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (5478): Use ARRAY_SIZE and a cleaner logic for initializing tuner
authorMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 29 Mar 2007 01:37:26 +0000 (22:37 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 27 Apr 2007 18:45:11 +0000 (15:45 -0300)
commitf009a4f2d2b6bb6ea7743906e0c7a072635c748f
tree04043fc593fbd639901a9b7fddb740acf20ab099
parent933e257f967b0148211646e184ce950ef8d578f0
V4L/DVB (5478): Use ARRAY_SIZE and a cleaner logic for initializing tuner

ATI HDTV Wonder needs to initialize some registers before allowing the
tuner to start working.
The current logic have lots of magic. This patch makes the code cleaner,
using ARRAY_SIZE() for the initialization array and using a
bidimensional array, instead of doing some stuff like:
&buffer[i+2]

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-cards.c