To allow users to include dw_mipi_dsi.h without pulling in dependencies
make dw_mipi_dsi.h self-contained.
Use forward declarations when possible.

Signed-off-by: Sam Ravnborg <[email protected]>
Cc: Andrzej Hajda <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Peter Senna Tschudin <[email protected]>
Cc: Martin Donnelly <[email protected]>
Cc: Martyn Welch <[email protected]>
---
 include/drm/bridge/dw_mipi_dsi.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/drm/bridge/dw_mipi_dsi.h b/include/drm/bridge/dw_mipi_dsi.h
index 7d3dd69a5caa..825c222afbfc 100644
--- a/include/drm/bridge/dw_mipi_dsi.h
+++ b/include/drm/bridge/dw_mipi_dsi.h
@@ -9,8 +9,16 @@
 
 #ifndef __DW_MIPI_DSI__
 #define __DW_MIPI_DSI__
+#include <linux/types.h>
 
+struct drm_display_mode;
+struct drm_encoder;
 struct dw_mipi_dsi;
+struct dw_mipi_dsi_host_ops;
+struct dw_mipi_dsi_phy_ops;
+struct dw_mipi_dsi_plat_data;
+struct mipi_dsi_device;
+struct platform_device;
 
 struct dw_mipi_dsi_phy_ops {
        int (*init)(void *priv_data);
-- 
2.20.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to