Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13363
b: refs/heads/master
c: 4f9c05a
h: refs/heads/master
i:
  13361: 16d5005
  13359: d66d3fc
v: v3
  • Loading branch information
Mauro Carvalho Chehab authored and Linus Torvalds committed Nov 9, 2005
1 parent d51bf11 commit b43b26f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 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: e43f14af143921ac6680aa3ddfff111bef4e034a
refs/heads/master: 4f9c05aa727a3b27e28972f2f3938b29ad81b833
8 changes: 4 additions & 4 deletions trunk/drivers/media/video/em28xx/em28xx-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ static int get_key_terratec(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw)
}

/* it seems that 0xFE indicates that a button is still hold
down, while 0xFF indicates that no button is hold
down. 0xFE sequences are sometimes interrupted by 0xFF */
down, while 0xff indicates that no button is hold
down. 0xfe sequences are sometimes interrupted by 0xFF */

dprintk("key %02x\n", b);

if (b == 0xFF)
if (b == 0xff)
return 0;

if (b == 0xFE)
if (b == 0xfe)
/* keep old data */
return 1;

Expand Down
12 changes: 7 additions & 5 deletions trunk/drivers/media/video/ir-kbd-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ static int get_key_knc1(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw)
}

/* it seems that 0xFE indicates that a button is still hold
down, while 0xFF indicates that no button is hold
down. 0xFE sequences are sometimes interrupted by 0xFF */
down, while 0xff indicates that no button is hold
down. 0xfe sequences are sometimes interrupted by 0xFF */

dprintk(2,"key %02x\n", b);

if (b == 0xFF)
if (b == 0xff)
return 0;

if (b == 0xFE)
if (b == 0xfe)
/* keep old data */
return 1;

Expand Down Expand Up @@ -429,7 +429,9 @@ static int ir_probe(struct i2c_adapter *adap)
static const int probe_saa7134[] = { 0x7a, -1 };
static const int probe_em2820[] = { 0x30, 0x47, -1 };
const int *probe = NULL;
struct i2c_client c; unsigned char buf; int i,rc;
struct i2c_client c;
unsigned char buf;
int i,rc;

switch (adap->id) {
case I2C_HW_B_BT848:
Expand Down

0 comments on commit b43b26f

Please sign in to comment.