diff options
author | Ricardo Cerqueira <v4l@cerqueira.org> | 2005-11-09 00:37:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:22 -0500 |
commit | ac9cd97640a8bcad75dc7305761365c3e339bbc5 (patch) | |
tree | a5061e3804d7cc5debbd0277ba10fedbd3a3b2b0 /drivers/media/video/saa7134/saa7134-i2c.c | |
parent | f4067fd46aa330d6df0a79b9dd0eb9555809c440 (diff) |
[PATCH] v4l: 817: saa713x keymaps and key builders were moved from ir kbd i2c c
- SAA713x keymaps and key builders were moved from ir-kbd-i2c.c
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-i2c.c')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-i2c.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-i2c.c b/drivers/media/video/saa7134/saa7134-i2c.c index 2577d03485b8..7575043f0874 100644 --- a/drivers/media/video/saa7134/saa7134-i2c.c +++ b/drivers/media/video/saa7134/saa7134-i2c.c | |||
@@ -335,6 +335,20 @@ static int attach_inform(struct i2c_client *client) | |||
335 | d1printk( "%s i2c attach [addr=0x%x,client=%s]\n", | 335 | d1printk( "%s i2c attach [addr=0x%x,client=%s]\n", |
336 | client->driver->name, client->addr, client->name); | 336 | client->driver->name, client->addr, client->name); |
337 | 337 | ||
338 | /* Am I an i2c remote control? */ | ||
339 | |||
340 | switch (client->addr) { | ||
341 | case 0x7a: | ||
342 | case 0x47: | ||
343 | { | ||
344 | struct IR_i2c *ir = i2c_get_clientdata(client); | ||
345 | d1printk("%s i2c IR detected (%s).\n", | ||
346 | client->driver->name,ir->phys); | ||
347 | saa7134_set_i2c_ir(dev,ir); | ||
348 | break; | ||
349 | } | ||
350 | } | ||
351 | |||
338 | if (!client->driver->command) | 352 | if (!client->driver->command) |
339 | return 0; | 353 | return 0; |
340 | 354 | ||