summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-12-13 16:00:08 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-18 08:57:28 -0200
commit14a0ab8716debd1d35589394cd66d05137e00969 (patch)
tree1100ff0a88e0ffab46c4c678797a25eaa451c23d /include
parent55639353a0035052d9ea6cfe4dde0ac7fcbb2c9f (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')
-rw-r--r--include/media/ir-core.h12
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 {
};
struct ir_input_dev {
- struct input_dev *dev;
- struct ir_scancode_table rc_tab;
+ struct input_dev *dev; /* Input device*/
+ struct ir_scancode_table rc_tab; /* scan/key table */
+ unsigned long devno; /* device number */
+ struct attribute_group attr; /* IR attributes */
+ struct device *class_dev; /* virtual class dev */
};
/* Routines from ir-keytable.c */
@@ -59,4 +62,9 @@ int ir_input_register(struct input_dev *dev,
struct ir_scancode_table *ir_codes);
void ir_input_unregister(struct input_dev *input_dev);
+/* Routines from ir-sysfs.c */
+
+int ir_register_class(struct input_dev *input_dev);
+void ir_unregister_class(struct input_dev *input_dev);
+
#endif