drm/bridge: make dw_mipi_dsi.h self-contained
authorSam Ravnborg <sam@ravnborg.org>
Sun, 19 May 2019 18:36:35 +0000 (20:36 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 26 May 2019 08:40:40 +0000 (10:40 +0200)
commit54e6a745aad30ba82bbea5b0e9869e42a39cbbc3
tree0751e67cea891b625dfc6e32a528a66c2c6e4d98
parent6cdd4e60f7b793981eca32aa414be9b510173202
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
include/drm/bridge/dw_mipi_dsi.h