]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf5f1c8b33250f2e37175c8822dfac29115da702
tree5a0b57aa67417c030043c6225b0e3c7ee361293a
parentd5c271da004e8427560c7dd6074746a9aaf6dfec
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