diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-14 00:55:03 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:24 -0500 |
commit | d4b778d36889b4d51d79a99f8a96e110def8541c (patch) | |
tree | 641bb024dabf3785cb7cfce53a1e95d69153be00 /drivers/media/IR/ir-keytable.c | |
parent | 950b0f5a0bf764663a6aa4397d105ad571c64a83 (diff) |
V4L/DVB (13638): ir-core: documment missed functions
While here, change ir_core_dev_number to be static
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR/ir-keytable.c')
-rw-r--r-- | drivers/media/IR/ir-keytable.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/media/IR/ir-keytable.c b/drivers/media/IR/ir-keytable.c index b2d498c3183a..68aceb8d63a9 100644 --- a/drivers/media/IR/ir-keytable.c +++ b/drivers/media/IR/ir-keytable.c | |||
@@ -402,9 +402,10 @@ EXPORT_SYMBOL_GPL(ir_g_keycode_from_table); | |||
402 | * @input_dev: the struct input_dev descriptor of the device | 402 | * @input_dev: the struct input_dev descriptor of the device |
403 | * @rc_tab: the struct ir_scancode_table table of scancode/keymap | 403 | * @rc_tab: the struct ir_scancode_table table of scancode/keymap |
404 | * | 404 | * |
405 | * This routine is used to initialize the input infrastructure to work with | 405 | * This routine is used to initialize the input infrastructure |
406 | * an IR. | 406 | * to work with an IR. |
407 | * It should be called before registering the IR device. | 407 | * It will register the input/evdev interface for the device and |
408 | * register the syfs code for IR class | ||
408 | */ | 409 | */ |
409 | int ir_input_register(struct input_dev *input_dev, | 410 | int ir_input_register(struct input_dev *input_dev, |
410 | const struct ir_scancode_table *rc_tab, | 411 | const struct ir_scancode_table *rc_tab, |
@@ -471,6 +472,12 @@ err: | |||
471 | } | 472 | } |
472 | EXPORT_SYMBOL_GPL(ir_input_register); | 473 | EXPORT_SYMBOL_GPL(ir_input_register); |
473 | 474 | ||
475 | /** | ||
476 | * ir_input_unregister() - unregisters IR and frees resources | ||
477 | * @input_dev: the struct input_dev descriptor of the device | ||
478 | |||
479 | * This routine is used to free memory and de-register interfaces. | ||
480 | */ | ||
474 | void ir_input_unregister(struct input_dev *dev) | 481 | void ir_input_unregister(struct input_dev *dev) |
475 | { | 482 | { |
476 | struct ir_input_dev *ir_dev = input_get_drvdata(dev); | 483 | struct ir_input_dev *ir_dev = input_get_drvdata(dev); |