diff options
Diffstat (limited to 'include/linux/component.h')
-rw-r--r-- | include/linux/component.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/component.h b/include/linux/component.h index 83da25bdf59c..30bcc7e590eb 100644 --- a/include/linux/component.h +++ b/include/linux/component.h | |||
@@ -34,6 +34,8 @@ struct component_ops { | |||
34 | }; | 34 | }; |
35 | 35 | ||
36 | int component_add(struct device *, const struct component_ops *); | 36 | int component_add(struct device *, const struct component_ops *); |
37 | int component_add_typed(struct device *dev, const struct component_ops *ops, | ||
38 | int subcomponent); | ||
37 | void component_del(struct device *, const struct component_ops *); | 39 | void component_del(struct device *, const struct component_ops *); |
38 | 40 | ||
39 | int component_bind_all(struct device *master, void *master_data); | 41 | int component_bind_all(struct device *master, void *master_data); |
@@ -91,6 +93,9 @@ void component_match_add_release(struct device *master, | |||
91 | struct component_match **matchptr, | 93 | struct component_match **matchptr, |
92 | void (*release)(struct device *, void *), | 94 | void (*release)(struct device *, void *), |
93 | int (*compare)(struct device *, void *), void *compare_data); | 95 | int (*compare)(struct device *, void *), void *compare_data); |
96 | void component_match_add_typed(struct device *master, | ||
97 | struct component_match **matchptr, | ||
98 | int (*compare_typed)(struct device *, int, void *), void *compare_data); | ||
94 | 99 | ||
95 | /** | 100 | /** |
96 | * component_match_add - add a compent match | 101 | * component_match_add - add a compent match |
@@ -101,12 +106,13 @@ void component_match_add_release(struct device *master, | |||
101 | * | 106 | * |
102 | * Adds a new component match to the list stored in @matchptr, which the @master | 107 | * Adds a new component match to the list stored in @matchptr, which the @master |
103 | * aggregate driver needs to function. The list of component matches pointed to | 108 | * aggregate driver needs to function. The list of component matches pointed to |
104 | * by @matchptr must be initialized to NULL before adding the first match. | 109 | * by @matchptr must be initialized to NULL before adding the first match. This |
110 | * only matches against components added with component_add(). | ||
105 | * | 111 | * |
106 | * The allocated match list in @matchptr is automatically released using devm | 112 | * The allocated match list in @matchptr is automatically released using devm |
107 | * actions. | 113 | * actions. |
108 | * | 114 | * |
109 | * See also component_match_add_release(). | 115 | * See also component_match_add_release() and component_match_add_typed(). |
110 | */ | 116 | */ |
111 | static inline void component_match_add(struct device *master, | 117 | static inline void component_match_add(struct device *master, |
112 | struct component_match **matchptr, | 118 | struct component_match **matchptr, |