aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/drm/bridge
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2019-05-19 20:36:35 +0200
committerSam Ravnborg <sam@ravnborg.org>2019-05-26 10:40:40 +0200
commit54e6a745aad30ba82bbea5b0e9869e42a39cbbc3 (patch)
tree0751e67cea891b625dfc6e32a528a66c2c6e4d98 /include/drm/bridge
parentdrm/panel: st7701: Swap vertical front and back porch timings (diff)
downloadwireguard-linux-54e6a745aad30ba82bbea5b0e9869e42a39cbbc3.tar.xz
wireguard-linux-54e6a745aad30ba82bbea5b0e9869e42a39cbbc3.zip
drm/bridge: make dw_mipi_dsi.h self-contained
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. v2: - Drop forward declarations of local structs (Laurent) - Add include of drm_modes.h (Laurent) Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Laurent Pinchart <Laurent.pinchart@ideasonboard.com> Cc: Andrzej Hajda <a.hajda@samsung.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: Peter Senna Tschudin <peter.senna@gmail.com> Cc: Martin Donnelly <martin.donnelly@ge.com> Cc: Martyn Welch <martyn.welch@collabora.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190519183636.19588-2-sam@ravnborg.org
Diffstat (limited to 'include/drm/bridge')
-rw-r--r--include/drm/bridge/dw_mipi_dsi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/drm/bridge/dw_mipi_dsi.h b/include/drm/bridge/dw_mipi_dsi.h
index 7d3dd69a5caa..92cf9d1e1655 100644
--- a/include/drm/bridge/dw_mipi_dsi.h
+++ b/include/drm/bridge/dw_mipi_dsi.h
@@ -10,7 +10,15 @@
#ifndef __DW_MIPI_DSI__
#define __DW_MIPI_DSI__
+#include <linux/types.h>
+
+#include <drm/drm_modes.h>
+
+struct drm_display_mode;
+struct drm_encoder;
struct dw_mipi_dsi;
+struct mipi_dsi_device;
+struct platform_device;
struct dw_mipi_dsi_phy_ops {
int (*init)(void *priv_data);