diff options
Diffstat (limited to 'include/media/ir-common.h')
-rw-r--r-- | include/media/ir-common.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h index 2e275154aef3..e8a64761df56 100644 --- a/include/media/ir-common.h +++ b/include/media/ir-common.h | |||
@@ -107,11 +107,23 @@ void ir_rc5_timer_keyup(unsigned long data); | |||
107 | /* scancode->keycode map tables from ir-keymaps.c */ | 107 | /* scancode->keycode map tables from ir-keymaps.c */ |
108 | 108 | ||
109 | #define IR_KEYTABLE(a) \ | 109 | #define IR_KEYTABLE(a) \ |
110 | (ir_codes_ ## a ## _table) | 110 | ir_codes_ ## a ## _table |
111 | 111 | ||
112 | #define DECLARE_IR_KEYTABLE(a) \ | 112 | #define DECLARE_IR_KEYTABLE(a) \ |
113 | extern struct ir_scancode_table IR_KEYTABLE(a) | 113 | extern struct ir_scancode_table IR_KEYTABLE(a) |
114 | 114 | ||
115 | #define DEFINE_IR_KEYTABLE(tabname, type) \ | ||
116 | struct ir_scancode_table IR_KEYTABLE(tabname) = { \ | ||
117 | .scan = tabname, \ | ||
118 | .size = ARRAY_SIZE(tabname), \ | ||
119 | .ir_type = type, \ | ||
120 | .name = #tabname, \ | ||
121 | }; \ | ||
122 | EXPORT_SYMBOL_GPL(IR_KEYTABLE(tabname)) | ||
123 | |||
124 | #define DEFINE_LEGACY_IR_KEYTABLE(tabname) \ | ||
125 | DEFINE_IR_KEYTABLE(tabname, IR_TYPE_UNKNOWN) | ||
126 | |||
115 | DECLARE_IR_KEYTABLE(adstech_dvb_t_pci); | 127 | DECLARE_IR_KEYTABLE(adstech_dvb_t_pci); |
116 | DECLARE_IR_KEYTABLE(apac_viewcomp); | 128 | DECLARE_IR_KEYTABLE(apac_viewcomp); |
117 | DECLARE_IR_KEYTABLE(asus_pc39); | 129 | DECLARE_IR_KEYTABLE(asus_pc39); |