drm_of.h 749 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __DRM_OF_H__
  2. #define __DRM_OF_H__
  3. struct component_master_ops;
  4. struct device;
  5. struct drm_device;
  6. struct device_node;
  7. #ifdef CONFIG_OF
  8. extern uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
  9. struct device_node *port);
  10. extern int drm_of_component_probe(struct device *dev,
  11. int (*compare_of)(struct device *, void *),
  12. const struct component_master_ops *m_ops);
  13. #else
  14. static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
  15. struct device_node *port)
  16. {
  17. return 0;
  18. }
  19. static inline int
  20. drm_of_component_probe(struct device *dev,
  21. int (*compare_of)(struct device *, void *),
  22. const struct component_master_ops *m_ops)
  23. {
  24. return -EINVAL;
  25. }
  26. #endif
  27. #endif /* __DRM_OF_H__ */