2014-06-15 12:07:12 +02:00
|
|
|
#ifndef __DRM_OF_H__
|
|
|
|
#define __DRM_OF_H__
|
|
|
|
|
2015-10-20 11:23:12 +02:00
|
|
|
struct component_master_ops;
|
|
|
|
struct device;
|
2014-06-15 12:07:12 +02:00
|
|
|
struct drm_device;
|
|
|
|
struct device_node;
|
|
|
|
|
|
|
|
#ifdef CONFIG_OF
|
|
|
|
extern uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
|
|
|
|
struct device_node *port);
|
2015-10-20 11:23:12 +02:00
|
|
|
extern int drm_of_component_probe(struct device *dev,
|
|
|
|
int (*compare_of)(struct device *, void *),
|
|
|
|
const struct component_master_ops *m_ops);
|
2014-06-15 12:07:12 +02:00
|
|
|
#else
|
|
|
|
static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
|
|
|
|
struct device_node *port)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2015-10-20 11:23:12 +02:00
|
|
|
|
|
|
|
static inline int
|
|
|
|
drm_of_component_probe(struct device *dev,
|
|
|
|
int (*compare_of)(struct device *, void *),
|
|
|
|
const struct component_master_ops *m_ops)
|
|
|
|
{
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
2014-06-15 12:07:12 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __DRM_OF_H__ */
|