drm: add missing header guards to drm_crtc_helper_internal.h
authorJani Nikula <jani.nikula@intel.com>
Fri, 8 Mar 2024 11:55:40 +0000 (13:55 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 11 Mar 2024 09:47:06 +0000 (11:47 +0200)
Including the file twice can lead to errors.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/b5020cdc2ff6d2f4992ea25cf88d528e4738d700.1709898638.git.jani.nikula@intel.com
drivers/gpu/drm/drm_crtc_helper_internal.h

index 28e04e750130e9224bb03620e48c89a3d4d2a526..ed4deed07abda1b7f32449f3e76b3cb3689cf53a 100644 (file)
@@ -26,6 +26,9 @@
  * implementation details and are not exported to drivers.
  */
 
+#ifndef __DRM_CRTC_HELPER_INTERNAL_H__
+#define __DRM_CRTC_HELPER_INTERNAL_H__
+
 #include <drm/drm_connector.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_encoder.h>
@@ -44,3 +47,5 @@ drm_connector_mode_valid(struct drm_connector *connector,
 
 struct drm_encoder *
 drm_connector_get_single_encoder(struct drm_connector *connector);
+
+#endif /* __DRM_CRTC_HELPER_INTERNAL_H__ */