Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/imx: add forward declarations for types

The imx.h header does not forward declare the types it uses, and the
header is not self-contained. Fix it.

Fixes: cc3e8a216d6b ("drm/imx: add internal bridge handling display-timings DT node")
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: imx@lists.linux.dev
Cc: linux-arm-kernel@lists.infradead.org
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20241009140452.1981175-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+4
+4
include/drm/bridge/imx.h
··· 6 6 #ifndef DRM_IMX_BRIDGE_H 7 7 #define DRM_IMX_BRIDGE_H 8 8 9 + struct device; 10 + struct device_node; 11 + struct drm_bridge; 12 + 9 13 struct drm_bridge *devm_imx_drm_legacy_bridge(struct device *dev, 10 14 struct device_node *np, 11 15 int type);