diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-04-02 02:05:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:56:49 -0400 |
commit | 6686fa6917caaaaf3d595df6accedb87607517c9 (patch) | |
tree | 718a1711608b4d8fe6ec7acb1a40bfd965ce4413 /drivers/media/IR/rc-map.c | |
parent | 9ce50c1a5faad80cf6100ea4e8970416ee3b8b59 (diff) |
V4L/DVB: Break Remote Controller keymaps into modules
The original Remote Controller approach were very messy: a big file,
that were part of ir-common kernel module, containing 64 different
RC keymap tables, used by the V4L/DVB drivers.
Better to break each RC keymap table into a separate module,
registering them into rc core on a process similar to the fs/nls tables.
As an userspace program is now in charge of loading those tables,
adds an option to allow the complete removal of those tables from
kernelspace.
Yet, on embedded devices like Set Top Boxes and TV sets, maybe the
only available input device is the IR. So, we should keep allowing
the usage of in-kernel tables, but a latter patch should change
the default to 'n', after giving some time for distros to add
the v4l-utils with the ir-keytable program, to allow the table
load via userspace.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/rc-map.c')
-rw-r--r-- | drivers/media/IR/rc-map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/IR/rc-map.c b/drivers/media/IR/rc-map.c index aa269f5ef3fe..02c72f086fe0 100644 --- a/drivers/media/IR/rc-map.c +++ b/drivers/media/IR/rc-map.c | |||
@@ -64,7 +64,7 @@ int ir_register_map(struct rc_keymap *map) | |||
64 | spin_unlock(&rc_map_lock); | 64 | spin_unlock(&rc_map_lock); |
65 | return 0; | 65 | return 0; |
66 | } | 66 | } |
67 | EXPORT_SYMBOL_GPL(ir_raw_handler_register); | 67 | EXPORT_SYMBOL_GPL(ir_register_map); |
68 | 68 | ||
69 | void ir_unregister_map(struct rc_keymap *map) | 69 | void ir_unregister_map(struct rc_keymap *map) |
70 | { | 70 | { |
@@ -72,4 +72,4 @@ void ir_unregister_map(struct rc_keymap *map) | |||
72 | list_del(&map->list); | 72 | list_del(&map->list); |
73 | spin_unlock(&rc_map_lock); | 73 | spin_unlock(&rc_map_lock); |
74 | } | 74 | } |
75 | EXPORT_SYMBOL_GPL(ir_raw_handler_unregister); | 75 | EXPORT_SYMBOL_GPL(ir_unregister_map); |