diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-04-19 14:18:01 +0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-03 14:32:43 +0400 |
commit | 6955b58254c2bcee8a7b55ce06468a645dc98ec5 (patch) | |
tree | 2efc0f481be4070cf6e2916b037fa28ac0fcf092 /include/linux/component.h | |
parent | fcbcebce7159c928692dc6a5e88869f6e44438b9 (diff) | |
download | linux-6955b58254c2bcee8a7b55ce06468a645dc98ec5.tar.xz |
component: add support for component match array
Add support for generating a set of component matches at master probe
time, and submitting them to the component layer. This allows the
component layer to perform the matches internally without needing to
call into the master driver, and allows for further restructuring of
the component helper.
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/component.h')
-rw-r--r-- | include/linux/component.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/component.h b/include/linux/component.h index 68870182ca1e..c00dcc302611 100644 --- a/include/linux/component.h +++ b/include/linux/component.h @@ -29,4 +29,11 @@ void component_master_del(struct device *, int component_master_add_child(struct master *master, int (*compare)(struct device *, void *), void *compare_data); +struct component_match; + +int component_master_add_with_match(struct device *, + const struct component_master_ops *, struct component_match *); +void component_match_add(struct device *, struct component_match **, + int (*compare)(struct device *, void *), void *compare_data); + #endif |