summaryrefslogtreecommitdiffstats
path: root/kernel/include/drm/drm_of.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/drm/drm_of.h')
-rw-r--r--kernel/include/drm/drm_of.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/include/drm/drm_of.h b/kernel/include/drm/drm_of.h
new file mode 100644
index 000000000..2441f7112
--- /dev/null
+++ b/kernel/include/drm/drm_of.h
@@ -0,0 +1,18 @@
+#ifndef __DRM_OF_H__
+#define __DRM_OF_H__
+
+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);
+#else
+static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
+ struct device_node *port)
+{
+ return 0;
+}
+#endif
+
+#endif /* __DRM_OF_H__ */