diff options
Diffstat (limited to 'drivers/media/video/adv7175.c')
-rw-r--r-- | drivers/media/video/adv7175.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/media/video/adv7175.c b/drivers/media/video/adv7175.c index 4e218f22b214..245f94265758 100644 --- a/drivers/media/video/adv7175.c +++ b/drivers/media/video/adv7175.c | |||
@@ -68,8 +68,6 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)"); | |||
68 | /* ----------------------------------------------------------------------- */ | 68 | /* ----------------------------------------------------------------------- */ |
69 | 69 | ||
70 | struct adv7175 { | 70 | struct adv7175 { |
71 | unsigned char reg[128]; | ||
72 | |||
73 | int norm; | 71 | int norm; |
74 | int input; | 72 | int input; |
75 | int enable; | 73 | int enable; |
@@ -95,9 +93,6 @@ adv7175_write (struct i2c_client *client, | |||
95 | u8 reg, | 93 | u8 reg, |
96 | u8 value) | 94 | u8 value) |
97 | { | 95 | { |
98 | struct adv7175 *encoder = i2c_get_clientdata(client); | ||
99 | |||
100 | encoder->reg[reg] = value; | ||
101 | return i2c_smbus_write_byte_data(client, reg, value); | 96 | return i2c_smbus_write_byte_data(client, reg, value); |
102 | } | 97 | } |
103 | 98 | ||
@@ -120,7 +115,6 @@ adv7175_write_block (struct i2c_client *client, | |||
120 | * the adapter understands raw I2C */ | 115 | * the adapter understands raw I2C */ |
121 | if (i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { | 116 | if (i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { |
122 | /* do raw I2C, not smbus compatible */ | 117 | /* do raw I2C, not smbus compatible */ |
123 | struct adv7175 *encoder = i2c_get_clientdata(client); | ||
124 | struct i2c_msg msg; | 118 | struct i2c_msg msg; |
125 | u8 block_data[32]; | 119 | u8 block_data[32]; |
126 | 120 | ||
@@ -131,8 +125,8 @@ adv7175_write_block (struct i2c_client *client, | |||
131 | msg.len = 0; | 125 | msg.len = 0; |
132 | block_data[msg.len++] = reg = data[0]; | 126 | block_data[msg.len++] = reg = data[0]; |
133 | do { | 127 | do { |
134 | block_data[msg.len++] = | 128 | block_data[msg.len++] = data[1]; |
135 | encoder->reg[reg++] = data[1]; | 129 | reg++; |
136 | len -= 2; | 130 | len -= 2; |
137 | data += 2; | 131 | data += 2; |
138 | } while (len >= 2 && data[0] == reg && | 132 | } while (len >= 2 && data[0] == reg && |