diff options
author | Markus Rechberger <devnull@localhost> | 2005-10-14 21:29:04 +0000 |
---|---|---|
committer | Markus Rechberger <devnull@localhost> | 2005-10-14 21:29:04 +0000 |
commit | 95425ee75871aa089f91b6f9ab9e104c9d1ecfa4 (patch) | |
tree | aad1b610b166fe9b4064541704fd41a3f70db8db /linux/drivers/media/video/ir-kbd-i2c.c | |
parent | e507329b616de2024b70fa9d28adbad1fd1b5a95 (diff) | |
download | mediapointer-dvb-s2-95425ee75871aa089f91b6f9ab9e104c9d1ecfa4.tar.gz mediapointer-dvb-s2-95425ee75871aa089f91b6f9ab9e104c9d1ecfa4.tar.bz2 |
* ../linux/drivers/usb/media/em2820-input.c:
* ../linux/drivers/drivers/media/ir-kbd-i2c.c:
CodingStyle fixes
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/ir-kbd-i2c.c')
-rw-r--r-- | linux/drivers/media/video/ir-kbd-i2c.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/linux/drivers/media/video/ir-kbd-i2c.c b/linux/drivers/media/video/ir-kbd-i2c.c index 3d4766513..f29525597 100644 --- a/linux/drivers/media/video/ir-kbd-i2c.c +++ b/linux/drivers/media/video/ir-kbd-i2c.c @@ -1,5 +1,5 @@ /* - * $Id: ir-kbd-i2c.c,v 1.20 2005/10/14 20:09:42 mrechberger Exp $ + * $Id: ir-kbd-i2c.c,v 1.21 2005/10/14 21:29:04 mrechberger Exp $ * * keyboard input driver for i2c IR remote controls * @@ -218,15 +218,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; @@ -438,7 +438,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: |