V4L/DVB (5815): Cx88: i2c structure templates clean-up
authorJean Delvare <khali@linux-fr.org>
Sun, 1 Jul 2007 21:37:51 +0000 (18:37 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 18 Jul 2007 17:24:34 +0000 (14:24 -0300)
commit7e520d09f1a4b3da1d09a4540e3f4fa852658a0d
tree5a0b57aa67417c030043c6225b0e3c7ee361293a
parent4de7bb44cc6aa6e0a74f80c628f600da5b8fcd47
V4L/DVB (5815): Cx88: i2c structure templates clean-up

Clean up the use of structure templates in cx88-i2c and cx88-vp3054-i2c.
For one thing, a real template is supposed to be read-only. And in some
cases it's more efficient to initialize the few fields we need
individually.

This clean-up shrinks cx88-i2c.o by 33% and cx88-vp3054-i2c.o by 49%
(x86_64).

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-i2c.c
drivers/media/video/cx88/cx88-vp3054-i2c.c