[PATCH i-g-t 04/17] tests/intel/kms_busy: Use 'enum pipe' instead of 'int'

Ville Syrjala
2026-02-11T16:34:26Z

Change the type of the 'pipe' function paramteres from
'int' to the more approproate 'enum pipe'. This will aid
in cocci based 'pipe' to 'crtc' conversion.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
tests/intel/kms_busy.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/intel/kms_busy.c b/tests/intel/kms_busy.c
index 2c8d365080e1..dd65585d41a2 100644
--- a/tests/intel/kms_busy.c
+++ b/tests/intel/kms_busy.c
@@ -73,7 +73,7 @@ IGT_TEST_DESCRIPTION("Basic check of KMS ABI with busy framebuffers.");
static bool all_pipes = false;

static void
-set_fb_on_crtc(igt_display_t *dpy, int pipe,
+set_fb_on_crtc(igt_display_t *dpy, enum pipe pipe,
igt_output_t *output, struct igt_fb *fb)
{
drmModeModeInfoPtr mode;
@@ -106,7 +106,7 @@ static void do_cleanup_display(igt_display_t *dpy)
igt_display_commit2(dpy, dpy->is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY);
}

-static void flip_to_fb(igt_display_t *dpy, int pipe,
+static void flip_to_fb(igt_display_t *dpy, enum pipe pipe,
igt_output_t *output,
struct igt_fb *fb, int timeout,
const char *name, bool modeset)
@@ -172,7 +172,7 @@ static void flip_to_fb(igt_display_t *dpy, int pipe,
put_ahnd(ahnd);
}

-static void test_flip(igt_display_t *dpy, int pipe,
+static void test_flip(igt_display_t *dpy, enum pipe pipe,
igt_output_t *output, bool modeset)
{
struct igt_fb fb[2];
--
2.52.0