Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23273
b: refs/heads/master
c: 2467a67
h: refs/heads/master
i:
  23271: 99f10c1
v: v3
  • Loading branch information
Jean Delvare authored and Mauro Carvalho Chehab committed Mar 23, 2006
1 parent aef5fac commit 3e69aec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2f8de1a10697efe7bee08e51b587208706b44e97
refs/heads/master: 2467a670ee24631b05e91971286730e71f6a6af0
10 changes: 2 additions & 8 deletions trunk/drivers/media/video/adv7175.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)");
/* ----------------------------------------------------------------------- */

struct adv7175 {
unsigned char reg[128];

int norm;
int input;
int enable;
Expand All @@ -95,9 +93,6 @@ adv7175_write (struct i2c_client *client,
u8 reg,
u8 value)
{
struct adv7175 *encoder = i2c_get_clientdata(client);

encoder->reg[reg] = value;
return i2c_smbus_write_byte_data(client, reg, value);
}

Expand All @@ -120,7 +115,6 @@ adv7175_write_block (struct i2c_client *client,
* the adapter understands raw I2C */
if (i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) {
/* do raw I2C, not smbus compatible */
struct adv7175 *encoder = i2c_get_clientdata(client);
struct i2c_msg msg;
u8 block_data[32];

Expand All @@ -131,8 +125,8 @@ adv7175_write_block (struct i2c_client *client,
msg.len = 0;
block_data[msg.len++] = reg = data[0];
do {
block_data[msg.len++] =
encoder->reg[reg++] = data[1];
block_data[msg.len++] = data[1];
reg++;
len -= 2;
data += 2;
} while (len >= 2 && data[0] == reg &&
Expand Down

0 comments on commit 3e69aec

Please sign in to comment.