diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-23 19:23:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-23 19:23:20 -0500 |
commit | 88f07ffb63add018bfafd480ec6a294088277f06 (patch) | |
tree | 64b657d06b3ae7de3f87544a85d83d0ed6a7e3a9 /drivers/media/video/bt856.c | |
parent | b6585dedac232ca79fe978d97a95fdaa6da24f66 (diff) | |
parent | 9aa45e34d2948f360f8c0e63d10f49015ca51edd (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb:
V4L/DVB (3568k): zoran: Use i2c_master_send when possible
V4L/DVB (3568j): adv7175: Drop unused encoder dump command
V4L/DVB (3568i): adv7175: Drop unused register cache
V4L/DVB (3568h): cpia: correct email address
V4L/DVB (3568g): sem2mutex: zoran
V4L/DVB (3568f): saa7110: Fix array overrun
V4L/DVB (3568e): bt856: Spare memory
V4L/DVB (3568d): saa7111.c fix
V4L/DVB (3568c): zoran: Init cleanups
V4L/DVB (3568b): saa7111: Prevent array overrun
V4L/DVB (3568a): saa7114: Fix i2c block write
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 da3be00ae2fb..4d47a0a0e974 100644 --- a/drivers/media/video/bt856.c +++ b/drivers/media/video/bt856.c | |||
@@ -70,17 +70,14 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)"); | |||
70 | 70 | ||
71 | /* ----------------------------------------------------------------------- */ | 71 | /* ----------------------------------------------------------------------- */ |
72 | 72 | ||
73 | #define REG_OFFSET 0xCE | 73 | #define REG_OFFSET 0xDA |
74 | #define BT856_NR_REG 6 | ||
74 | 75 | ||
75 | struct bt856 { | 76 | struct bt856 { |
76 | unsigned char reg[32]; | 77 | unsigned char reg[BT856_NR_REG]; |
77 | 78 | ||
78 | int norm; | 79 | int norm; |
79 | int enable; | 80 | int enable; |
80 | int bright; | ||
81 | int contrast; | ||
82 | int hue; | ||
83 | int sat; | ||
84 | }; | 81 | }; |
85 | 82 | ||
86 | #define I2C_BT856 0x88 | 83 | #define I2C_BT856 0x88 |
@@ -119,8 +116,8 @@ bt856_dump (struct i2c_client *client) | |||
119 | struct bt856 *encoder = i2c_get_clientdata(client); | 116 | struct bt856 *encoder = i2c_get_clientdata(client); |
120 | 117 | ||
121 | printk(KERN_INFO "%s: register dump:", I2C_NAME(client)); | 118 | printk(KERN_INFO "%s: register dump:", I2C_NAME(client)); |
122 | for (i = 0xd6; i <= 0xde; i += 2) | 119 | for (i = 0; i < BT856_NR_REG; i += 2) |
123 | printk(" %02x", encoder->reg[i - REG_OFFSET]); | 120 | printk(" %02x", encoder->reg[i]); |
124 | printk("\n"); | 121 | printk("\n"); |
125 | } | 122 | } |
126 | 123 | ||