diff options
| author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-03-12 19:18:14 -0500 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-17 23:47:05 -0400 |
| commit | 727e625cc2c114e449a78f851b0c12edac897a83 (patch) | |
| tree | ec7b14d68fb1b79d636d50756082e61360610063 /drivers/media/dvb/mantis | |
| parent | 9c89a181a09eaafca5fc638c3b7ce1620227f60a (diff) | |
V4L/DVB: ir-core: export driver name used by IR via uevent
Now, both driver and keytable names are exported to userspace. This
will help userspace to decide when a table need to be replaced
by another one.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/mantis')
| -rw-r--r-- | drivers/media/dvb/mantis/mantis_input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/dvb/mantis/mantis_input.c b/drivers/media/dvb/mantis/mantis_input.c index 4675a3b53c7d..6baf30229689 100644 --- a/drivers/media/dvb/mantis/mantis_input.c +++ b/drivers/media/dvb/mantis/mantis_input.c | |||
| @@ -32,6 +32,8 @@ | |||
| 32 | #include "mantis_reg.h" | 32 | #include "mantis_reg.h" |
| 33 | #include "mantis_uart.h" | 33 | #include "mantis_uart.h" |
| 34 | 34 | ||
| 35 | #define MODULE_NAME "mantis_core" | ||
| 36 | |||
| 35 | static struct ir_scancode mantis_ir_table[] = { | 37 | static struct ir_scancode mantis_ir_table[] = { |
| 36 | { 0x29, KEY_POWER }, | 38 | { 0x29, KEY_POWER }, |
| 37 | { 0x28, KEY_FAVORITES }, | 39 | { 0x28, KEY_FAVORITES }, |
| @@ -126,7 +128,7 @@ int mantis_input_init(struct mantis_pci *mantis) | |||
| 126 | rc->id.version = 1; | 128 | rc->id.version = 1; |
| 127 | rc->dev = mantis->pdev->dev; | 129 | rc->dev = mantis->pdev->dev; |
| 128 | 130 | ||
| 129 | err = ir_input_register(rc, &ir_mantis, NULL); | 131 | err = ir_input_register(rc, &ir_mantis, NULL, MODULE_NAME); |
| 130 | if (err) { | 132 | if (err) { |
| 131 | dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err); | 133 | dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err); |
| 132 | input_free_device(rc); | 134 | input_free_device(rc); |
