diff options
Diffstat (limited to 'drivers/media/video/bt856.c')
-rw-r--r-- | drivers/media/video/bt856.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/media/video/bt856.c b/drivers/media/video/bt856.c index 909b593530ed..7c68937853b0 100644 --- a/drivers/media/video/bt856.c +++ b/drivers/media/video/bt856.c | |||
@@ -71,17 +71,14 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)"); | |||
71 | 71 | ||
72 | /* ----------------------------------------------------------------------- */ | 72 | /* ----------------------------------------------------------------------- */ |
73 | 73 | ||
74 | #define REG_OFFSET 0xCE | 74 | #define REG_OFFSET 0xDA |
75 | #define BT856_NR_REG 6 | ||
75 | 76 | ||
76 | struct bt856 { | 77 | struct bt856 { |
77 | unsigned char reg[32]; | 78 | unsigned char reg[BT856_NR_REG]; |
78 | 79 | ||
79 | int norm; | 80 | int norm; |
80 | int enable; | 81 | int enable; |
81 | int bright; | ||
82 | int contrast; | ||
83 | int hue; | ||
84 | int sat; | ||
85 | }; | 82 | }; |
86 | 83 | ||
87 | #define I2C_BT856 0x88 | 84 | #define I2C_BT856 0x88 |
@@ -120,8 +117,8 @@ bt856_dump (struct i2c_client *client) | |||
120 | struct bt856 *encoder = i2c_get_clientdata(client); | 117 | struct bt856 *encoder = i2c_get_clientdata(client); |
121 | 118 | ||
122 | printk(KERN_INFO "%s: register dump:", I2C_NAME(client)); | 119 | printk(KERN_INFO "%s: register dump:", I2C_NAME(client)); |
123 | for (i = 0xd6; i <= 0xde; i += 2) | 120 | for (i = 0; i < BT856_NR_REG; i += 2) |
124 | printk(" %02x", encoder->reg[i - REG_OFFSET]); | 121 | printk(" %02x", encoder->reg[i]); |
125 | printk("\n"); | 122 | printk("\n"); |
126 | } | 123 | } |
127 | 124 | ||