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/video/cx231xx | |
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/video/cx231xx')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-input.c b/drivers/media/video/cx231xx/cx231xx-input.c index b473cd8367f5..a0e8bb88d67e 100644 --- a/drivers/media/video/cx231xx/cx231xx-input.c +++ b/drivers/media/video/cx231xx/cx231xx-input.c | |||
@@ -35,6 +35,8 @@ static unsigned int ir_debug; | |||
35 | module_param(ir_debug, int, 0644); | 35 | module_param(ir_debug, int, 0644); |
36 | MODULE_PARM_DESC(ir_debug, "enable debug messages [IR]"); | 36 | MODULE_PARM_DESC(ir_debug, "enable debug messages [IR]"); |
37 | 37 | ||
38 | #define MODULE_NAME "cx231xx" | ||
39 | |||
38 | #define i2cdprintk(fmt, arg...) \ | 40 | #define i2cdprintk(fmt, arg...) \ |
39 | if (ir_debug) { \ | 41 | if (ir_debug) { \ |
40 | printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \ | 42 | printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \ |
@@ -217,7 +219,8 @@ int cx231xx_ir_init(struct cx231xx *dev) | |||
217 | cx231xx_ir_start(ir); | 219 | cx231xx_ir_start(ir); |
218 | 220 | ||
219 | /* all done */ | 221 | /* all done */ |
220 | err = ir_input_register(ir->input, dev->board.ir_codes, NULL); | 222 | err = ir_input_register(ir->input, dev->board.ir_codes, |
223 | NULL, MODULE_NAME); | ||
221 | if (err) | 224 | if (err) |
222 | goto err_out_stop; | 225 | goto err_out_stop; |
223 | 226 | ||