summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-11-29 15:08:02 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 21:42:21 +0100
commitf6fc50494027e913ff0159e43c593cd75f35ec7a (patch)
treee9337bfa7c65fb9d35db726003b84907c9b9ac61 /include/media
parentV4L/DVB (13537): ir: Prepare the code for dynamic keycode table allocation (diff)
downloadlinux-f6fc50494027e913ff0159e43c593cd75f35ec7a.tar.xz
linux-f6fc50494027e913ff0159e43c593cd75f35ec7a.zip
V4L/DVB (13538): ir-common: Use a dynamic keycode table
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-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 {
/* configuration */
int ir_type;
+ struct ir_scancode_table keytable;
+
/* key info */
u32 ir_key; /* ir scancode */
u32 keycode; /* linux key code */
@@ -121,6 +123,10 @@ u32 ir_g_keycode_from_table(struct input_dev *input_dev,
int ir_set_keycode_table(struct input_dev *input_dev,
struct ir_scancode_table *rc_tab);
+
+int ir_roundup_tablesize(int n_elems);
+int ir_copy_table(struct ir_scancode_table *destin,
+ const struct ir_scancode_table *origin);
void ir_input_free(struct input_dev *input_dev);
/* scancode->keycode map tables from ir-keymaps.c */