aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/ir-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/media/ir-common.h')
-rw-r--r--include/media/ir-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h
index 16b8f17bcfec..72df0467d2b9 100644
--- a/include/media/ir-common.h
+++ b/include/media/ir-common.h
@@ -54,6 +54,8 @@ struct ir_input_state {
54 /* configuration */ 54 /* configuration */
55 int ir_type; 55 int ir_type;
56 56
57 struct ir_scancode_table keytable;
58
57 /* key info */ 59 /* key info */
58 u32 ir_key; /* ir scancode */ 60 u32 ir_key; /* ir scancode */
59 u32 keycode; /* linux key code */ 61 u32 keycode; /* linux key code */
@@ -121,6 +123,10 @@ u32 ir_g_keycode_from_table(struct input_dev *input_dev,
121 123
122int ir_set_keycode_table(struct input_dev *input_dev, 124int ir_set_keycode_table(struct input_dev *input_dev,
123 struct ir_scancode_table *rc_tab); 125 struct ir_scancode_table *rc_tab);
126
127int ir_roundup_tablesize(int n_elems);
128int ir_copy_table(struct ir_scancode_table *destin,
129 const struct ir_scancode_table *origin);
124void ir_input_free(struct input_dev *input_dev); 130void ir_input_free(struct input_dev *input_dev);
125 131
126/* scancode->keycode map tables from ir-keymaps.c */ 132/* scancode->keycode map tables from ir-keymaps.c */