[PATCH i-g-t 03/16] tests: prefer igt_display_t over struct igt_display

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

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

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
tests/kms_getfb.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/kms_getfb.c b/tests/kms_getfb.c
index 5b0eea161163..7ceca73f3997 100644
--- a/tests/kms_getfb.c
+++ b/tests/kms_getfb.c
@@ -129,7 +129,7 @@ static bool has_getfb_iface(int fd)
/**
* Find and return an arbitrary valid property ID.
*/
-static uint32_t get_any_prop_id(struct igt_display *display)
+static uint32_t get_any_prop_id(igt_display_t *display)
{
for (int i = 0; i < display->n_outputs; i++) {
igt_output_t *output = &display->outputs[i];
@@ -140,7 +140,7 @@ static uint32_t get_any_prop_id(struct igt_display *display)
return 0;
}

-static void test_handle_input(struct igt_display *display)
+static void test_handle_input(igt_display_t *display)
{
struct igt_fb fb;

@@ -196,7 +196,7 @@ static void test_handle_input(struct igt_display *display)
igt_remove_fb(display->drm_fd, &fb);
}

-static void test_duplicate_handles(struct igt_display *display)
+static void test_duplicate_handles(igt_display_t *display)
{
struct igt_fb fb;

@@ -256,7 +256,7 @@ static void test_duplicate_handles(struct igt_display *display)
igt_remove_fb(display->drm_fd, &fb);
}

-static void test_getfb2(struct igt_display *display)
+static void test_getfb2(igt_display_t *display)
{
struct igt_fb fb;

--
2.47.3