[PATCH i-g-t 02/16] lib/kms: rename struct igt_plane to _igt_plane

Jani Nikula
2026-04-14T07:15:06Z

Prefer igt_plane_t over struct igt_plane, and 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 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index bb50ed7ff908..9b8614c4e6b8 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -409,7 +409,7 @@ static inline bool igt_rotation_90_or_270(igt_rotation_t rotation)
return rotation & (IGT_ROTATION_90 | IGT_ROTATION_270);
}

-typedef struct igt_plane igt_plane_t;
+typedef struct _igt_plane igt_plane_t;

typedef struct igt_colorop {
uint32_t id;
@@ -423,10 +423,10 @@ typedef struct igt_colorop {

} igt_colorop_t;

-typedef struct igt_plane {
+typedef struct _igt_plane {
/*< private >*/
igt_crtc_t *crtc;
- struct igt_plane *ref;
+ igt_plane_t *ref;
int index;
/* capabilities */
int type;
--
2.47.3