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 /include/media/ir-core.h | |
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 'include/media/ir-core.h')
-rw-r--r-- | include/media/ir-core.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h index 9ab8a7774223..1eae72d518e0 100644 --- a/include/media/ir-core.h +++ b/include/media/ir-core.h | |||
@@ -49,6 +49,7 @@ struct ir_dev_props { | |||
49 | 49 | ||
50 | struct ir_input_dev { | 50 | struct ir_input_dev { |
51 | struct device dev; /* device */ | 51 | struct device dev; /* device */ |
52 | char *driver_name; /* Name of the driver module */ | ||
52 | struct ir_scancode_table rc_tab; /* scan/key table */ | 53 | struct ir_scancode_table rc_tab; /* scan/key table */ |
53 | unsigned long devno; /* device number */ | 54 | unsigned long devno; /* device number */ |
54 | const struct ir_dev_props *props; /* Device properties */ | 55 | const struct ir_dev_props *props; /* Device properties */ |
@@ -62,7 +63,8 @@ u32 ir_g_keycode_from_table(struct input_dev *input_dev, | |||
62 | 63 | ||
63 | int ir_input_register(struct input_dev *dev, | 64 | int ir_input_register(struct input_dev *dev, |
64 | const struct ir_scancode_table *ir_codes, | 65 | const struct ir_scancode_table *ir_codes, |
65 | const struct ir_dev_props *props); | 66 | const struct ir_dev_props *props, |
67 | const char *driver_name); | ||
66 | void ir_input_unregister(struct input_dev *input_dev); | 68 | void ir_input_unregister(struct input_dev *input_dev); |
67 | 69 | ||
68 | /* Routines from ir-sysfs.c */ | 70 | /* Routines from ir-sysfs.c */ |