[PATCH i-g-t 05/16] lib/kms: rename struct igt_crtc to _igt_crtc

Jani Nikula
2026-04-14T07:17:28Z

Rename the struct to avoid accidental use. The named struct is only
needed for the typedef declaration.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
lib/igt_kms.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 2e2870854634..e785dce8b105 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -379,7 +379,7 @@ extern const char * const igt_plane_prop_names[];
extern const char * const igt_colorop_prop_names[];

typedef struct _igt_display igt_display_t;
-typedef struct igt_crtc igt_crtc_t;
+typedef struct _igt_crtc igt_crtc_t;
typedef uint32_t igt_fixed_t; /* 16.16 fixed point */

#define IGT_NUM_PLANE_COLOR_PIPELINES 4
@@ -470,7 +470,7 @@ typedef struct _igt_plane {
/*
* This struct represents a hardware pipe
*/
-struct igt_crtc {
+struct _igt_crtc {
igt_display_t *display;
/* ID of a hardware pipe */
enum pipe pipe;
--
2.47.3