diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-14 00:16:36 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:23 -0500 |
commit | 53f870228db0855f2031270ba5774dab0f33facd (patch) | |
tree | 1bfb5fee77f174f13f98404788970cd3c3a7b772 /include/media | |
parent | e93854da880d6dc357c00625d8371b6a926fd19b (diff) |
V4L/DVB (13635): ir-core: Implement protocol table type reading
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-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 dbdffd1458fb..a6d07dede09f 100644 --- a/include/media/ir-core.h +++ b/include/media/ir-core.h | |||
@@ -44,9 +44,10 @@ struct ir_scancode_table { | |||
44 | struct ir_dev_props { | 44 | struct ir_dev_props { |
45 | unsigned long allowed_protos; | 45 | unsigned long allowed_protos; |
46 | void *priv; | 46 | void *priv; |
47 | int (*change_protocol)(void *priv, unsigned long protocol); | 47 | int (*change_protocol)(void *priv, enum ir_type ir_type); |
48 | }; | 48 | }; |
49 | 49 | ||
50 | |||
50 | struct ir_input_dev { | 51 | struct ir_input_dev { |
51 | struct input_dev *dev; /* Input device*/ | 52 | struct input_dev *dev; /* Input device*/ |
52 | struct ir_scancode_table rc_tab; /* scan/key table */ | 53 | struct ir_scancode_table rc_tab; /* scan/key table */ |
@@ -55,6 +56,7 @@ struct ir_input_dev { | |||
55 | struct device *class_dev; /* virtual class dev */ | 56 | struct device *class_dev; /* virtual class dev */ |
56 | const struct ir_dev_props *props; /* Device properties */ | 57 | const struct ir_dev_props *props; /* Device properties */ |
57 | }; | 58 | }; |
59 | #define to_ir_input_dev(_attr) container_of(_attr, struct ir_input_dev, attr) | ||
58 | 60 | ||
59 | /* Routines from ir-keytable.c */ | 61 | /* Routines from ir-keytable.c */ |
60 | 62 | ||