diff options
author | Ricardo Cerqueira <devnull@localhost> | 2006-01-17 16:18:40 +0000 |
---|---|---|
committer | Ricardo Cerqueira <devnull@localhost> | 2006-01-17 16:18:40 +0000 |
commit | e61c57110d91eb97c802c33778d5434444a96036 (patch) | |
tree | 2aecb45a49167ff1d4723f5ec25a0c23c23bd023 /linux/drivers/media/video/ir-kbd-i2c.c | |
parent | a0479e1b02ac0859ec4b731a1c20223edd82679e (diff) | |
download | mediapointer-dvb-s2-e61c57110d91eb97c802c33778d5434444a96036.tar.gz mediapointer-dvb-s2-e61c57110d91eb97c802c33778d5434444a96036.tar.bz2 |
Move all IR keymaps to a single header file
From: Ricardo Cerqueira <v4l@cerqueira.org>
All the keymaps have the same structure, and can be shared between different
chips, so it makes no sense having them scattered between the input files.
This aggregates them all in a new header.
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
Diffstat (limited to 'linux/drivers/media/video/ir-kbd-i2c.c')
-rw-r--r-- | linux/drivers/media/video/ir-kbd-i2c.c | 42 |
1 files changed, 2 insertions, 40 deletions
diff --git a/linux/drivers/media/video/ir-kbd-i2c.c b/linux/drivers/media/video/ir-kbd-i2c.c index bad66ef5f..8486a0f99 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.32 2006/01/07 21:30:41 mchehab Exp $ + * $Id: ir-kbd-i2c.c,v 1.33 2006/01/17 16:18:41 rmcc Exp $ * * keyboard input driver for i2c IR remote controls * @@ -44,47 +44,9 @@ #include "compat.h" #include <media/ir-common.h> +#include <media/ir-keymaps.h> #include <media/ir-kbd-i2c.h> -/* Mark Phalan <phalanm@o2.ie> */ -static IR_KEYTAB_TYPE ir_codes_pv951[IR_KEYTAB_SIZE] = { - [ 0 ] = KEY_KP0, - [ 1 ] = KEY_KP1, - [ 2 ] = KEY_KP2, - [ 3 ] = KEY_KP3, - [ 4 ] = KEY_KP4, - [ 5 ] = KEY_KP5, - [ 6 ] = KEY_KP6, - [ 7 ] = KEY_KP7, - [ 8 ] = KEY_KP8, - [ 9 ] = KEY_KP9, - - [ 18 ] = KEY_POWER, - [ 16 ] = KEY_MUTE, - [ 31 ] = KEY_VOLUMEDOWN, - [ 27 ] = KEY_VOLUMEUP, - [ 26 ] = KEY_CHANNELUP, - [ 30 ] = KEY_CHANNELDOWN, - [ 14 ] = KEY_PAGEUP, - [ 29 ] = KEY_PAGEDOWN, - [ 19 ] = KEY_SOUND, - - [ 24 ] = KEY_KPPLUSMINUS, /* CH +/- */ - [ 22 ] = KEY_SUBTITLE, /* CC */ - [ 13 ] = KEY_TEXT, /* TTX */ - [ 11 ] = KEY_TV, /* AIR/CBL */ - [ 17 ] = KEY_PC, /* PC/TV */ - [ 23 ] = KEY_OK, /* CH RTN */ - [ 25 ] = KEY_MODE, /* FUNC */ - [ 12 ] = KEY_SEARCH, /* AUTOSCAN */ - - /* Not sure what to do with these ones! */ - [ 15 ] = KEY_SELECT, /* SOURCE */ - [ 10 ] = KEY_KPPLUS, /* +100 */ - [ 20 ] = KEY_KPEQUAL, /* SYNC */ - [ 28 ] = KEY_MEDIA, /* PC/TV */ -}; - /* ----------------------------------------------------------------------- */ /* insmod parameters */ |