Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113881
b: refs/heads/master
c: 187565c
h: refs/heads/master
i:
  113879: 8a8aa58
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent f9c6e4c commit f363450
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 4e08caf0cb85c4f63ddaf72a67d95fba8528e04e
refs/heads/master: 187565c43a95bcf7798c58d518ddd765933d24da
8 changes: 4 additions & 4 deletions trunk/drivers/media/video/bt856.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)");

/* ----------------------------------------------------------------------- */

#define REG_OFFSET 0xDA
#define BT856_NR_REG 6
#define BT856_REG_OFFSET 0xDA
#define BT856_NR_REG 6

struct bt856 {
unsigned char reg[BT856_NR_REG];
Expand All @@ -89,7 +89,7 @@ bt856_write (struct i2c_client *client,
{
struct bt856 *encoder = i2c_get_clientdata(client);

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

Expand All @@ -103,7 +103,7 @@ bt856_setbit (struct i2c_client *client,

return bt856_write(client, reg,
(encoder->
reg[reg - REG_OFFSET] & ~(1 << bit)) |
reg[reg - BT856_REG_OFFSET] & ~(1 << bit)) |
(value ? (1 << bit) : 0));
}

Expand Down

0 comments on commit f363450

Please sign in to comment.