diff options
Diffstat (limited to 'drivers/media/IR/ir-keytable.c')
-rw-r--r-- | drivers/media/IR/ir-keytable.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/drivers/media/IR/ir-keytable.c b/drivers/media/IR/ir-keytable.c index 99ed2deceef3..20d642dbab49 100644 --- a/drivers/media/IR/ir-keytable.c +++ b/drivers/media/IR/ir-keytable.c | |||
@@ -1,6 +1,15 @@ | |||
1 | /* ir-register.c - handle IR scancode->keycode tables | 1 | /* ir-register.c - handle IR scancode->keycode tables |
2 | * | 2 | * |
3 | * Copyright (C) 2009 by Mauro Carvalho Chehab <mchehab@redhat.com> | 3 | * Copyright (C) 2009 by Mauro Carvalho Chehab <mchehab@redhat.com> |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation version 2 of the License. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
4 | */ | 13 | */ |
5 | 14 | ||
6 | #include <linux/usb/input.h> | 15 | #include <linux/usb/input.h> |
@@ -10,7 +19,6 @@ | |||
10 | #define IR_TAB_MIN_SIZE 32 | 19 | #define IR_TAB_MIN_SIZE 32 |
11 | #define IR_TAB_MAX_SIZE 1024 | 20 | #define IR_TAB_MAX_SIZE 1024 |
12 | 21 | ||
13 | |||
14 | /** | 22 | /** |
15 | * ir_seek_table() - returns the element order on the table | 23 | * ir_seek_table() - returns the element order on the table |
16 | * @rc_tab: the ir_scancode_table with the keymap to be used | 24 | * @rc_tab: the ir_scancode_table with the keymap to be used |
@@ -73,6 +81,7 @@ int ir_roundup_tablesize(int n_elems) | |||
73 | 81 | ||
74 | return n_elems; | 82 | return n_elems; |
75 | } | 83 | } |
84 | EXPORT_SYMBOL_GPL(ir_roundup_tablesize); | ||
76 | 85 | ||
77 | /** | 86 | /** |
78 | * ir_copy_table() - copies a keytable, discarding the unused entries | 87 | * ir_copy_table() - copies a keytable, discarding the unused entries |
@@ -101,6 +110,7 @@ int ir_copy_table(struct ir_scancode_table *destin, | |||
101 | 110 | ||
102 | return 0; | 111 | return 0; |
103 | } | 112 | } |
113 | EXPORT_SYMBOL_GPL(ir_copy_table); | ||
104 | 114 | ||
105 | /** | 115 | /** |
106 | * ir_getkeycode() - get a keycode at the evdev scancode ->keycode table | 116 | * ir_getkeycode() - get a keycode at the evdev scancode ->keycode table |
@@ -137,7 +147,6 @@ static int ir_getkeycode(struct input_dev *dev, | |||
137 | return 0; | 147 | return 0; |
138 | } | 148 | } |
139 | 149 | ||
140 | |||
141 | /** | 150 | /** |
142 | * ir_is_resize_needed() - Check if the table needs rezise | 151 | * ir_is_resize_needed() - Check if the table needs rezise |
143 | * @table: keycode table that may need to resize | 152 | * @table: keycode table that may need to resize |
@@ -379,6 +388,7 @@ u32 ir_g_keycode_from_table(struct input_dev *dev, u32 scancode) | |||
379 | /* Reports userspace that an unknown keycode were got */ | 388 | /* Reports userspace that an unknown keycode were got */ |
380 | return KEY_RESERVED; | 389 | return KEY_RESERVED; |
381 | } | 390 | } |
391 | EXPORT_SYMBOL_GPL(ir_g_keycode_from_table); | ||
382 | 392 | ||
383 | /** | 393 | /** |
384 | * ir_set_keycode_table() - sets the IR keycode table and add the handlers | 394 | * ir_set_keycode_table() - sets the IR keycode table and add the handlers |
@@ -415,6 +425,7 @@ int ir_set_keycode_table(struct input_dev *input_dev, | |||
415 | 425 | ||
416 | return 0; | 426 | return 0; |
417 | } | 427 | } |
428 | EXPORT_SYMBOL_GPL(ir_set_keycode_table); | ||
418 | 429 | ||
419 | void ir_input_free(struct input_dev *dev) | 430 | void ir_input_free(struct input_dev *dev) |
420 | { | 431 | { |
@@ -431,3 +442,9 @@ void ir_input_free(struct input_dev *dev) | |||
431 | } | 442 | } |
432 | EXPORT_SYMBOL_GPL(ir_input_free); | 443 | EXPORT_SYMBOL_GPL(ir_input_free); |
433 | 444 | ||
445 | int ir_core_debug; /* ir_debug level (0,1,2) */ | ||
446 | EXPORT_SYMBOL_GPL(ir_core_debug); | ||
447 | module_param_named(debug, ir_core_debug, int, 0644); | ||
448 | |||
449 | MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); | ||
450 | MODULE_LICENSE("GPL"); | ||