diff mbox series

drm/imx: add forward declarations for types

Message ID 20241009140452.1981175-1-jani.nikula@intel.com (mailing list archive)
State New
Headers show
Series drm/imx: add forward declarations for types | expand

Commit Message

Jani Nikula Oct. 9, 2024, 2:04 p.m. UTC
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
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 include/drm/bridge/imx.h | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Philipp Zabel Oct. 9, 2024, 2:22 p.m. UTC | #1
On Mi, 2024-10-09 at 17:04 +0300, Jani Nikula wrote:
> 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
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Thank you,

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>

regards
Philipp
Jani Nikula Oct. 9, 2024, 3:30 p.m. UTC | #2
On Wed, 09 Oct 2024, Philipp Zabel <p.zabel@pengutronix.de> wrote:
> On Mi, 2024-10-09 at 17:04 +0300, Jani Nikula wrote:
>> 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
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> Thank you,
>
> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>

Thanks, pushed to drm-misc-next.

>
> regards
> Philipp
diff mbox series

Patch

diff --git a/include/drm/bridge/imx.h b/include/drm/bridge/imx.h
index e14f429a9ca2..b93f719fe0e7 100644
--- a/include/drm/bridge/imx.h
+++ b/include/drm/bridge/imx.h
@@ -6,6 +6,10 @@ 
 #ifndef DRM_IMX_BRIDGE_H
 #define DRM_IMX_BRIDGE_H
 
+struct device;
+struct device_node;
+struct drm_bridge;
+
 struct drm_bridge *devm_imx_drm_legacy_bridge(struct device *dev,
 					      struct device_node *np,
 					      int type);