diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-13 14:00:08 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:23 -0500 |
commit | 4714eda87748f226833c32400ab60dd6a3b80766 (patch) | |
tree | 7bffe980fa51169f78c9ec35c09936d8dce73443 /include/media | |
parent | 60b341b778cc2929df16c0a504c91621b3c6a4ad (diff) |
V4L/DVB (13633): ir-core: create a new class for remote controllers
Add sysfs skeleton to export remote controller information via
/sys/class/irrcv.
For now, the code doesn't do much. It just exports an attribute that
is meant to report and control the IR protocol used by the keytable.
However, the callbacks for this new attribute weren't set yet.
Also, it lacks symlinks to the used event interface.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/ir-core.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h index 299d201e1339..a5a3bda354de 100644 --- a/include/media/ir-core.h +++ b/include/media/ir-core.h | |||
@@ -42,8 +42,11 @@ struct ir_scancode_table { | |||
42 | }; | 42 | }; |
43 | 43 | ||
44 | struct ir_input_dev { | 44 | struct ir_input_dev { |
45 | struct input_dev *dev; | 45 | struct input_dev *dev; /* Input device*/ |
46 | struct ir_scancode_table rc_tab; | 46 | struct ir_scancode_table rc_tab; /* scan/key table */ |
47 | unsigned long devno; /* device number */ | ||
48 | struct attribute_group attr; /* IR attributes */ | ||
49 | struct device *class_dev; /* virtual class dev */ | ||
47 | }; | 50 | }; |
48 | 51 | ||
49 | /* Routines from ir-keytable.c */ | 52 | /* Routines from ir-keytable.c */ |
@@ -59,4 +62,9 @@ int ir_input_register(struct input_dev *dev, | |||
59 | struct ir_scancode_table *ir_codes); | 62 | struct ir_scancode_table *ir_codes); |
60 | void ir_input_unregister(struct input_dev *input_dev); | 63 | void ir_input_unregister(struct input_dev *input_dev); |
61 | 64 | ||
65 | /* Routines from ir-sysfs.c */ | ||
66 | |||
67 | int ir_register_class(struct input_dev *input_dev); | ||
68 | void ir_unregister_class(struct input_dev *input_dev); | ||
69 | |||
62 | #endif | 70 | #endif |