diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-08-13 08:21:57 -0700 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2007-08-13 08:21:57 -0700 |
commit | 7d73f539b514e3404c8d4210aa44aa92c0d67b43 (patch) | |
tree | fb1b6332b4ff0d7308cafad7d5e86eecae34acf0 /linux/drivers/media/video/cx88 | |
parent | fdc99e16cdc1fb38323ea1c7d16633144d0e41d9 (diff) | |
download | mediapointer-dvb-s2-7d73f539b514e3404c8d4210aa44aa92c0d67b43.tar.gz mediapointer-dvb-s2-7d73f539b514e3404c8d4210aa44aa92c0d67b43.tar.bz2 |
cx88: Make card database more memory efficient
From: Trent Piepho <xyzzy@speakeasy.org>
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>
Diffstat (limited to 'linux/drivers/media/video/cx88')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx88/cx88.h b/linux/drivers/media/video/cx88/cx88.h index de23efc7d..d3bd464f8 100644 --- a/linux/drivers/media/video/cx88/cx88.h +++ b/linux/drivers/media/video/cx88/cx88.h @@ -229,8 +229,8 @@ enum cx88_itype { struct cx88_input { enum cx88_itype type; - unsigned int vmux; u32 gpio0, gpio1, gpio2, gpio3; + unsigned int vmux:2; unsigned int extadc:1; }; |