blob: 8544665ee4f463ec1fb77169247d4956a891c6e7 [file] [log] [blame]
Russell King7e435aa2014-06-15 11:07:12 +01001#ifndef __DRM_OF_H__
2#define __DRM_OF_H__
3
Liviu Dudaudf785aa2015-10-20 10:23:12 +01004struct component_master_ops;
5struct device;
Russell King7e435aa2014-06-15 11:07:12 +01006struct 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);
Liviu Dudaudf785aa2015-10-20 10:23:12 +010012extern int drm_of_component_probe(struct device *dev,
13 int (*compare_of)(struct device *, void *),
14 const struct component_master_ops *m_ops);
Russell King7e435aa2014-06-15 11:07:12 +010015#else
16static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
17 struct device_node *port)
18{
19 return 0;
20}
Liviu Dudaudf785aa2015-10-20 10:23:12 +010021
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}
Russell King7e435aa2014-06-15 11:07:12 +010029#endif
30
31#endif /* __DRM_OF_H__ */