[PATCH i-g-t 01/16] tests: prefer igt_plane_t over struct igt_plane

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

The typedefs are meant to be used instead of the plain structs.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
tests/intel/kms_dp_link_training.c | 4 ++--
tests/intel/kms_dp_linktrain_fallback.c | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/intel/kms_dp_link_training.c b/tests/intel/kms_dp_link_training.c
index d859db64b4ff..6aa63cdd8062 100644
--- a/tests/intel/kms_dp_link_training.c
+++ b/tests/intel/kms_dp_link_training.c
@@ -118,7 +118,7 @@ static void assert_link_status_good(data_t *data, bool mst)
*/
static void setup_planes_fbs(data_t *data, igt_output_t *outs[],
int count, drmModeModeInfo *modes[],
- struct igt_fb fbs[], struct igt_plane *planes[])
+ struct igt_fb fbs[], igt_plane_t *planes[])
{
int i;

@@ -148,7 +148,7 @@ static void do_modeset(data_t *data, bool mst)
igt_output_t *outs[IGT_MAX_PIPES];
drmModeModeInfo *modes[IGT_MAX_PIPES];
struct igt_fb fbs[IGT_MAX_PIPES];
- struct igt_plane *planes[IGT_MAX_PIPES];
+ igt_plane_t *planes[IGT_MAX_PIPES];
int n_pipes = 0;
int out_count = 0;
igt_crtc_t *crtc;
diff --git a/tests/intel/kms_dp_linktrain_fallback.c b/tests/intel/kms_dp_linktrain_fallback.c
index 2db5422c211d..661af7d165e7 100644
--- a/tests/intel/kms_dp_linktrain_fallback.c
+++ b/tests/intel/kms_dp_linktrain_fallback.c
@@ -41,7 +41,7 @@ typedef struct {
igt_output_t *output;
igt_crtc_t *crtc;
struct igt_fb fb;
- struct igt_plane *primary;
+ igt_plane_t *primary;
int n_pipes;
} data_t;

@@ -115,7 +115,7 @@ static void setup_modeset_on_outputs(data_t *data,
int *output_count,
drmModeModeInfo *mode[],
struct igt_fb fb[],
- struct igt_plane *primary[])
+ igt_plane_t *primary[])
{
int i;

@@ -159,7 +159,7 @@ static bool validate_modeset_for_outputs(data_t *data,
int *output_count,
drmModeModeInfo *mode[],
struct igt_fb fb[],
- struct igt_plane *primary[])
+ igt_plane_t *primary[])
{
igt_require_f(*output_count > 0, "Require at least 1 output\n");
setup_pipe_on_outputs(data, outputs, output_count);
@@ -173,7 +173,7 @@ static bool validate_modeset_for_outputs(data_t *data,
static bool setup_outputs(data_t *data, bool is_mst,
igt_output_t *outputs[],
int *output_count, drmModeModeInfo *mode[],
- struct igt_fb fb[], struct igt_plane *primary[])
+ struct igt_fb fb[], igt_plane_t *primary[])
{
bool ret;

@@ -307,7 +307,7 @@ static bool fix_link_status_and_recommit(data_t *data,
int *output_count,
drmModeModeInfo * modes[],
struct igt_fb fbs[],
- struct igt_plane *primaries[])
+ igt_plane_t *primaries[])
{
int i;
igt_output_t *out;
@@ -347,7 +347,7 @@ static void test_fallback(data_t *data, bool is_mst)
igt_output_t *outputs[IGT_MAX_PIPES];
drmModeModeInfo * modes[IGT_MAX_PIPES];
struct igt_fb fbs[IGT_MAX_PIPES];
- struct igt_plane *primaries[IGT_MAX_PIPES];
+ igt_plane_t *primaries[IGT_MAX_PIPES];
struct udev_monitor *mon;

retries = SPURIOUS_HPD_RETRY;
--
2.47.3