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)
commit5b9c4e6dbb3204568d4c058af6e34772393ada19
tree04043fc593fbd639901a9b7fddb740acf20ab099
parentc1d570385bd6dd5fe4c0cab09b1c390331111b35
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