diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-03-11 10:41:56 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-17 23:47:03 -0400 |
commit | 945cdfa2c99e2a3f5ead11519ba11ed1df2dd5c1 (patch) | |
tree | 0a0a62bca91befd1e607ca6b138df2fd2083fea8 /include/media/ir-core.h | |
parent | 8b0d2a052733d0a0e8ed59aeb8c7e6c90fdb793e (diff) |
V4L/DVB: ir: use a real device instead of a virtual class
Change the ir-sysfs approach to create irrcv0 as a device, instead of
using class_dev. Also, change the way input is registered, in order
to make its parent to be the irrcv device.
Due to this change, now the event device is created under
/sys/class/ir/irrcv class:
/sys/class/irrcv/irrcv0/
|-- current_protocol
|-- device -> ../../../1-3
|-- input9
| |-- capabilities
| | |-- abs
...
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, 1 insertions, 3 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h index 61c223bc3953..ce9f3476bbdc 100644 --- a/include/media/ir-core.h +++ b/include/media/ir-core.h | |||
@@ -47,11 +47,9 @@ struct ir_dev_props { | |||
47 | 47 | ||
48 | 48 | ||
49 | struct ir_input_dev { | 49 | struct ir_input_dev { |
50 | struct input_dev *dev; /* Input device*/ | 50 | struct device dev; /* device */ |
51 | struct ir_scancode_table rc_tab; /* scan/key table */ | 51 | struct ir_scancode_table rc_tab; /* scan/key table */ |
52 | unsigned long devno; /* device number */ | 52 | unsigned long devno; /* device number */ |
53 | struct attribute_group attr; /* IR attributes */ | ||
54 | struct device *class_dev; /* virtual class dev */ | ||
55 | const struct ir_dev_props *props; /* Device properties */ | 53 | const struct ir_dev_props *props; /* Device properties */ |
56 | }; | 54 | }; |
57 | #define to_ir_input_dev(_attr) container_of(_attr, struct ir_input_dev, attr) | 55 | #define to_ir_input_dev(_attr) container_of(_attr, struct ir_input_dev, attr) |