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>
This commit is contained in:
@@ -49,6 +49,7 @@ struct ir_dev_props {
|
||||
|
||||
struct ir_input_dev {
|
||||
struct device dev; /* device */
|
||||
char *driver_name; /* Name of the driver module */
|
||||
struct ir_scancode_table rc_tab; /* scan/key table */
|
||||
unsigned long devno; /* device number */
|
||||
const struct ir_dev_props *props; /* Device properties */
|
||||
@@ -62,7 +63,8 @@ u32 ir_g_keycode_from_table(struct input_dev *input_dev,
|
||||
|
||||
int ir_input_register(struct input_dev *dev,
|
||||
const struct ir_scancode_table *ir_codes,
|
||||
const struct ir_dev_props *props);
|
||||
const struct ir_dev_props *props,
|
||||
const char *driver_name);
|
||||
void ir_input_unregister(struct input_dev *input_dev);
|
||||
|
||||
/* Routines from ir-sysfs.c */
|
||||
|
Reference in New Issue
Block a user