diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-11-29 09:08:02 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:42:21 -0500 |
commit | f6fc50494027e913ff0159e43c593cd75f35ec7a (patch) | |
tree | e9337bfa7c65fb9d35db726003b84907c9b9ac61 /include/media/ir-common.h | |
parent | 055cd55601f948675006ca90362fc2bfaae90a86 (diff) |
V4L/DVB (13538): ir-common: Use a dynamic keycode table
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/ir-common.h')
-rw-r--r-- | include/media/ir-common.h | 6 |
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 | ||
122 | int ir_set_keycode_table(struct input_dev *input_dev, | 124 | int ir_set_keycode_table(struct input_dev *input_dev, |
123 | struct ir_scancode_table *rc_tab); | 125 | struct ir_scancode_table *rc_tab); |
126 | |||
127 | int ir_roundup_tablesize(int n_elems); | ||
128 | int ir_copy_table(struct ir_scancode_table *destin, | ||
129 | const struct ir_scancode_table *origin); | ||
124 | void ir_input_free(struct input_dev *input_dev); | 130 | void 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 */ |