diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-04-02 01:33:35 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:56:49 -0400 |
commit | 9ce50c1a5faad80cf6100ea4e8970416ee3b8b59 (patch) | |
tree | cb46aae81cb9cdf42aab4fdd07d1040a85cdd4c5 /include/media/ir-core.h | |
parent | 77b7422d48cda9b8e5dabb7f4bc056861c5ed4fe (diff) |
V4L/DVB: ir-core: Add support for RC map code register
Instead of having all RC tables hardcoded on one file with
all tables there, add infrastructure for registering and dynamically
load the table(s) when needed.
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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h index 643ff25daa89..39df3cf9e845 100644 --- a/include/media/ir-core.h +++ b/include/media/ir-core.h | |||
@@ -52,6 +52,11 @@ struct ir_scancode_table { | |||
52 | spinlock_t lock; | 52 | spinlock_t lock; |
53 | }; | 53 | }; |
54 | 54 | ||
55 | struct rc_keymap { | ||
56 | struct list_head list; | ||
57 | struct ir_scancode_table map; | ||
58 | }; | ||
59 | |||
55 | struct ir_dev_props { | 60 | struct ir_dev_props { |
56 | unsigned long allowed_protos; | 61 | unsigned long allowed_protos; |
57 | void *priv; | 62 | void *priv; |
@@ -126,6 +131,12 @@ int ir_input_register(struct input_dev *dev, | |||
126 | const char *driver_name); | 131 | const char *driver_name); |
127 | void ir_input_unregister(struct input_dev *input_dev); | 132 | void ir_input_unregister(struct input_dev *input_dev); |
128 | 133 | ||
134 | /* Routines from rc-map.c */ | ||
135 | |||
136 | int ir_register_map(struct rc_keymap *map); | ||
137 | void ir_unregister_map(struct rc_keymap *map); | ||
138 | struct ir_scancode_table *get_rc_map(const char *name); | ||
139 | |||
129 | /* Routines from ir-sysfs.c */ | 140 | /* Routines from ir-sysfs.c */ |
130 | 141 | ||
131 | int ir_register_class(struct input_dev *input_dev); | 142 | int ir_register_class(struct input_dev *input_dev); |