Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23269
b: refs/heads/master
c: f49a5ea
h: refs/heads/master
i:
  23267: 3232ce0
v: v3
  • Loading branch information
Jean Delvare authored and Mauro Carvalho Chehab committed Mar 23, 2006
1 parent 55a426c commit be9c085
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 58a0b84c92e62c2cc42036259a4b51e0bcaf8fa5
refs/heads/master: f49a5eaea6d7b3ed3d01ca9388eac9e7e5bf6025
13 changes: 5 additions & 8 deletions trunk/drivers/media/video/bt856.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,14 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)");

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

#define REG_OFFSET 0xCE
#define REG_OFFSET 0xDA
#define BT856_NR_REG 6

struct bt856 {
unsigned char reg[32];
unsigned char reg[BT856_NR_REG];

int norm;
int enable;
int bright;
int contrast;
int hue;
int sat;
};

#define I2C_BT856 0x88
Expand Down Expand Up @@ -120,8 +117,8 @@ bt856_dump (struct i2c_client *client)
struct bt856 *encoder = i2c_get_clientdata(client);

printk(KERN_INFO "%s: register dump:", I2C_NAME(client));
for (i = 0xd6; i <= 0xde; i += 2)
printk(" %02x", encoder->reg[i - REG_OFFSET]);
for (i = 0; i < BT856_NR_REG; i += 2)
printk(" %02x", encoder->reg[i]);
printk("\n");
}

Expand Down

0 comments on commit be9c085

Please sign in to comment.