V4L/DVB (3568e): bt856: Spare memory
authorJean Delvare <khali@linux-fr.org>
Wed, 22 Mar 2006 06:48:36 +0000 (03:48 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 23 Mar 2006 14:24:13 +0000 (11:24 -0300)
commitf49a5eaea6d7b3ed3d01ca9388eac9e7e5bf6025
treeb6aa64eaea8d47dd4419d76d170702242058eb66
parent58a0b84c92e62c2cc42036259a4b51e0bcaf8fa5
V4L/DVB (3568e): bt856: Spare memory

The bt856 driver has a register cache much larger than needed.  We really only
write to 3 registers, so a 32-byte cache is a bit too much.  We can be just as
efficient with a 6-byte cache.  We could even do with a 3-byte cache, but at
the cost of additional arithmetics arguably not worth the spared 3 bytes.

Also, 4 of the 6 other members of the bt856 data structure were not used
anywhere, so we can as well drop them for an additional 16 bytes of memory
spared.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/bt856.c