summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-11-27 22:51:56 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 18:42:20 -0200
commit6d691237e61ed68a04b14e3c89364e481421d6e8 (patch)
treeff06a1d8580f0f0acc8fecdc345d876ff3ca1912 /include/media
parent8573b74af25c279de3e309beddcba984bee9ec15 (diff)
downloadop-kernel-dev-6d691237e61ed68a04b14e3c89364e481421d6e8.zip
op-kernel-dev-6d691237e61ed68a04b14e3c89364e481421d6e8.tar.gz
V4L/DVB (13534): ir-common: Remove some unused fields/structs
Now that the IR conversion to dynamic tables has finished, we can get rid of some fields and definitions that aren't used anymore. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/ir-common.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h
index 262347b..1a619a4 100644
--- a/include/media/ir-common.h
+++ b/include/media/ir-common.h
@@ -35,9 +35,6 @@ extern int media_ir_debug; /* media_ir_debug level (0,1,2) */
#define IR_TYPE_PD 2 /* Pulse distance encoded IR */
#define IR_TYPE_OTHER 99
-#define IR_KEYTAB_TYPE u32
-#define IR_KEYTAB_SIZE 128 /* enougth for rc5, probably need more some day */
-
struct ir_scancode {
u16 scancode;
u32 keycode;
@@ -48,9 +45,6 @@ struct ir_scancode_table {
int size;
};
-#define IR_KEYCODE(tab,code) (((unsigned)code < IR_KEYTAB_SIZE) \
- ? tab[code] : KEY_RESERVED)
-
#define RC5_START(x) (((x)>>12)&3)
#define RC5_TOGGLE(x) (((x)>>11)&1)
#define RC5_ADDR(x) (((x)>>6)&31)
@@ -59,7 +53,6 @@ struct ir_scancode_table {
struct ir_input_state {
/* configuration */
int ir_type;
- IR_KEYTAB_TYPE ir_codes[IR_KEYTAB_SIZE];
/* key info */
u32 ir_key; /* ir scancode */
OpenPOWER on IntegriCloud