[PATCH i-g-t 03/17] tests/kms: Remove const qualifier from 'pipe' function parameters

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

Some functions have a const qualifier on a 'pipe' function
paramter. This ends up complicating cocci based efforts to
convert from 'pipe' to 'crtc'. Get rid of the extra qualifiers.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
tests/kms_panel_fitting.c | 4 ++--
tests/kms_scaling_modes.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
index 296f09405e4e..723336c7ba35 100644
--- a/tests/kms_panel_fitting.c
+++ b/tests/kms_panel_fitting.c
@@ -105,7 +105,7 @@ static void prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe,

static void
test_panel_fitting_legacy(data_t *d, igt_display_t *display,
- const enum pipe pipe, igt_output_t *output)
+ enum pipe pipe, igt_output_t *output)
{
drmModeModeInfo *mode, native_mode;
bool is_plane_scaling_active = true;
@@ -195,7 +195,7 @@ test_panel_fitting_legacy(data_t *d, igt_display_t *display,
}

static void
-test_panel_fitting_fastset(igt_display_t *display, const enum pipe pipe, igt_output_t *output)
+test_panel_fitting_fastset(igt_display_t *display, enum pipe pipe, igt_output_t *output)
{
igt_plane_t *primary, *sprite;
drmModeModeInfo mode;
diff --git a/tests/kms_scaling_modes.c b/tests/kms_scaling_modes.c
index 7f9a031ddcc4..5b0d6485ebb3 100644
--- a/tests/kms_scaling_modes.c
+++ b/tests/kms_scaling_modes.c
@@ -54,7 +54,7 @@ typedef struct data {
int drm_fd;
} data_t;

-static void test_scaling_mode_on_output(igt_display_t *display, const enum pipe pipe,
+static void test_scaling_mode_on_output(igt_display_t *display, enum pipe pipe,
igt_output_t *output, uint32_t flags)
{
igt_plane_t *primary, *sprite;
--
2.52.0