summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-12-11 09:44:23 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-16 00:18:44 -0200
commit75543cce0c1f46be495b981d8d3eda0882721d07 (patch)
treea9ce0d8919329369b174c63afadc372f82526e54 /include/media
parent865fbf20bed00d456556ecd4b4c9dadc45cba759 (diff)
downloadlinux-3.10-75543cce0c1f46be495b981d8d3eda0882721d07.tar.gz
linux-3.10-75543cce0c1f46be495b981d8d3eda0882721d07.tar.bz2
linux-3.10-75543cce0c1f46be495b981d8d3eda0882721d07.zip
V4L/DVB (13615): ir-core: create ir_input_register
Move non-V4L specific stuff from ir-functions ir_input_init() into a new function to register ir devices: ir_input_register(). Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/ir-common.h2
-rw-r--r--include/media/ir-core.h9
2 files changed, 7 insertions, 4 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h
index 18d300414fa..ac8ced6bf3e 100644
--- a/include/media/ir-common.h
+++ b/include/media/ir-common.h
@@ -37,8 +37,6 @@ 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 */
diff --git a/include/media/ir-core.h b/include/media/ir-core.h
index 825d04a4e77..ea76c199b67 100644
--- a/include/media/ir-core.h
+++ b/include/media/ir-core.h
@@ -41,6 +41,11 @@ struct ir_scancode_table {
spinlock_t lock;
};
+struct ir_input_dev {
+ struct input_dev *dev;
+ struct ir_scancode_table rc_tab;
+};
+
/* Routines from ir-keytable.c */
u32 ir_g_keycode_from_table(struct input_dev *input_dev,
@@ -50,8 +55,8 @@ 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);
+int ir_input_register(struct input_dev *dev,
+ struct ir_scancode_table *ir_codes);
void ir_input_free(struct input_dev *input_dev);
#endif