diff options
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 | ||