Merge tag 'arm64-perf' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[deliverable/linux.git] / include / drm / drm_of.h
CommitLineData
7e435aad
RK
1#ifndef __DRM_OF_H__
2#define __DRM_OF_H__
3
df785aa8
LD
4struct component_master_ops;
5struct device;
7e435aad
RK
6struct drm_device;
7struct device_node;
8
9#ifdef CONFIG_OF
10extern uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
11 struct device_node *port);
df785aa8
LD
12extern int drm_of_component_probe(struct device *dev,
13 int (*compare_of)(struct device *, void *),
14 const struct component_master_ops *m_ops);
7e435aad
RK
15#else
16static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
17 struct device_node *port)
18{
19 return 0;
20}
df785aa8
LD
21
22static inline int
23drm_of_component_probe(struct device *dev,
24 int (*compare_of)(struct device *, void *),
25 const struct component_master_ops *m_ops)
26{
27 return -EINVAL;
28}
7e435aad
RK
29#endif
30
31#endif /* __DRM_OF_H__ */
This page took 0.092865 seconds and 5 git commands to generate.