diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-11 09:44:23 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-16 00:18:44 -0200 |
commit | 75543cce0c1f46be495b981d8d3eda0882721d07 (patch) | |
tree | a9ce0d8919329369b174c63afadc372f82526e54 /include/media/ir-core.h | |
parent | 865fbf20bed00d456556ecd4b4c9dadc45cba759 (diff) | |
download | blackbird-obmc-linux-75543cce0c1f46be495b981d8d3eda0882721d07.tar.gz blackbird-obmc-linux-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/ir-core.h')
-rw-r--r-- | include/media/ir-core.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h index 825d04a4e77b..ea76c199b67d 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 |