[PATCH v2 14/16] drm/dp_mst: avoid includes in drm_dp_mst_topology_internal.h

Lucas De Marchi lucas.demarchi at intel.com
Fri Mar 8 15:12:08 UTC 2024


On Fri, Mar 08, 2024 at 01:55:52PM +0200, Jani Nikula wrote:
>Prefer forward declarations over includes where possible.
>
>Signed-off-by: Jani Nikula <jani.nikula at intel.com>


Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>

Lucas De Marchi

>---
> drivers/gpu/drm/display/drm_dp_mst_topology_internal.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology_internal.h b/drivers/gpu/drm/display/drm_dp_mst_topology_internal.h
>index a785ccbfdd73..f41c34e26be2 100644
>--- a/drivers/gpu/drm/display/drm_dp_mst_topology_internal.h
>+++ b/drivers/gpu/drm/display/drm_dp_mst_topology_internal.h
>@@ -10,7 +10,9 @@
> #ifndef _DRM_DP_MST_HELPER_INTERNAL_H_
> #define _DRM_DP_MST_HELPER_INTERNAL_H_
>
>-#include <drm/display/drm_dp_mst_helper.h>
>+struct drm_dp_sideband_msg_req_body;
>+struct drm_dp_sideband_msg_tx;
>+struct drm_printer;
>
> void
> drm_dp_encode_sideband_req(const struct drm_dp_sideband_msg_req_body *req,
>-- 
>2.39.2
>


More information about the Intel-gfx mailing list