aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-11-27 20:51:56 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 15:42:20 -0500
commit6d691237e61ed68a04b14e3c89364e481421d6e8 (patch)
treeff06a1d8580f0f0acc8fecdc345d876ff3ca1912 /include/media
parent8573b74af25c279de3e309beddcba984bee9ec15 (diff)
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 262347b61506..1a619a4ec5cc 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) */
35#define IR_TYPE_PD 2 /* Pulse distance encoded IR */ 35#define IR_TYPE_PD 2 /* Pulse distance encoded IR */
36#define IR_TYPE_OTHER 99 36#define IR_TYPE_OTHER 99
37 37
38#define IR_KEYTAB_TYPE u32
39#define IR_KEYTAB_SIZE 128 /* enougth for rc5, probably need more some day */
40
41struct ir_scancode { 38struct ir_scancode {
42 u16 scancode; 39 u16 scancode;
43 u32 keycode; 40 u32 keycode;
@@ -48,9 +45,6 @@ struct ir_scancode_table {
48 int size; 45 int size;
49}; 46};
50 47
51#define IR_KEYCODE(tab,code) (((unsigned)code < IR_KEYTAB_SIZE) \
52 ? tab[code] : KEY_RESERVED)
53
54#define RC5_START(x) (((x)>>12)&3) 48#define RC5_START(x) (((x)>>12)&3)
55#define RC5_TOGGLE(x) (((x)>>11)&1) 49#define RC5_TOGGLE(x) (((x)>>11)&1)
56#define RC5_ADDR(x) (((x)>>6)&31) 50#define RC5_ADDR(x) (((x)>>6)&31)
@@ -59,7 +53,6 @@ struct ir_scancode_table {
59struct ir_input_state { 53struct ir_input_state {
60 /* configuration */ 54 /* configuration */
61 int ir_type; 55 int ir_type;
62 IR_KEYTAB_TYPE ir_codes[IR_KEYTAB_SIZE];
63 56
64 /* key info */ 57 /* key info */
65 u32 ir_key; /* ir scancode */ 58 u32 ir_key; /* ir scancode */