diff options
author | Liu Ying <victor.liu@nxp.com> | 2017-08-29 16:58:58 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:28:20 +0800 |
commit | c3cad7223488638ab56c20b2c29345487857bc5f (patch) | |
tree | fb5c7cb3310f28b12c80cbdb758891d4d11199c7 /include/drm | |
parent | 1b31fff52bd204573c8aa726d261b2835f52bae2 (diff) |
MLK-16290 drm: Add drm_of_component_probe_with_match() helper
A component master may have both OF based and non-OF based components to be
bound with. This patch adds a helper drm_of_component_probe_with_match()
similar to drm_of_component_probe() so that the new helper may get an
additional provided match pointer(contains match entries for non-OF based
components) to support this case.
Tested-by: Meng Mingming <mingming.meng@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_of.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/drm/drm_of.h b/include/drm/drm_of.h index 4f835490d77a..c0bd3dff0191 100644 --- a/include/drm/drm_of.h +++ b/include/drm/drm_of.h @@ -4,6 +4,7 @@ #include <linux/of_graph.h> +struct component_match; struct component_master_ops; struct component_match; struct device; @@ -20,6 +21,10 @@ void drm_of_component_match_add(struct device *master, struct component_match **matchptr, int (*compare)(struct device *, void *), struct device_node *node); +extern int drm_of_component_probe_with_match(struct device *dev, + struct component_match *match, + int (*compare_of)(struct device *, void *), + const struct component_master_ops *m_ops); int drm_of_component_probe(struct device *dev, int (*compare_of)(struct device *, void *), const struct component_master_ops *m_ops); @@ -45,6 +50,14 @@ drm_of_component_match_add(struct device *master, { } +static int drm_of_component_probe_with_match(struct device *dev, + struct component_match *match, + int (*compare_of)(struct device *, void *), + const struct component_master_ops *m_ops) +{ + return -EINVAL; +} + static inline int drm_of_component_probe(struct device *dev, int (*compare_of)(struct device *, void *), |