diff mbox series

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

Message ID 83d96b40724e7fd18bec81a9c6c935dbe924da91.1709898638.git.jani.nikula@intel.com (mailing list archive)
State New, archived
Headers show
Series drm: fix headers, add header test facility | expand

Commit Message

Jani Nikula March 8, 2024, 11:55 a.m. UTC
Prefer forward declarations over includes where possible.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/display/drm_dp_mst_topology_internal.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Lucas De Marchi March 8, 2024, 3:12 p.m. UTC | #1
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@intel.com>


Reviewed-by: Lucas De Marchi <lucas.demarchi@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
>
diff mbox series

Patch

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,