aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-08-13 11:21:57 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:05:12 -0400
commitc252b0511596f76a32c7c64bcc6cc60b3bc1ec3a (patch)
tree07fe9fb453f97468fb6f207967190e5ac89ea9c0 /drivers/media
parent5f553388b06532b495681f5d6c8e8fbff64ea86a (diff)
V4L/DVB (6019): cx88: Make card database more memory efficient
The vmux setting is only two bits, but was taking up a whole 32 in the input description struct. By changing it to a two-bit bitfield, it can fit in what was padding space before and drop the input size by 4 bytes, from 28 to 24. This drops the board description struct, which has 9 inputs, from 280 to 244 bytes. Total driver size decreases by 2108 bytes. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/cx88/cx88.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h
index 809126866a3e..78486f90327a 100644
--- a/drivers/media/video/cx88/cx88.h
+++ b/drivers/media/video/cx88/cx88.h
@@ -226,8 +226,8 @@ enum cx88_itype {
226 226
227struct cx88_input { 227struct cx88_input {
228 enum cx88_itype type; 228 enum cx88_itype type;
229 unsigned int vmux;
230 u32 gpio0, gpio1, gpio2, gpio3; 229 u32 gpio0, gpio1, gpio2, gpio3;
230 unsigned int vmux:2;
231 unsigned int extadc:1; 231 unsigned int extadc:1;
232}; 232};
233 233