diff options
Diffstat (limited to 'include/media/ir-common.h')
-rw-r--r-- | include/media/ir-common.h | 7 |
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 | |||
41 | struct ir_scancode { | 38 | struct 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 { | |||
59 | struct ir_input_state { | 53 | struct 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 */ |