From c22705954a11d56e61aa3dd8e72d6cd2fa945d67 Mon Sep 17 00:00:00 2001 From: Gustavo Padovan Date: Wed, 2 Aug 2017 19:54:17 -0300 Subject: tests/kms_cursor_legacy: use 'enum pipe' type instead of 'int' Signed-off-by: Gustavo Padovan Reviewed-by: Arkadiusz Hiler --- tests/kms_cursor_legacy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/kms_cursor_legacy.c') diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c index 8180b043..15208f8b 100644 --- a/tests/kms_cursor_legacy.c +++ b/tests/kms_cursor_legacy.c @@ -47,7 +47,7 @@ IGT_TEST_DESCRIPTION("Stress legacy cursor ioctl"); static void stress(igt_display_t *display, - int pipe, int num_children, unsigned mode, + enum pipe pipe, int num_children, unsigned mode, int timeout) { struct drm_mode_cursor arg; @@ -148,7 +148,7 @@ static void stress(igt_display_t *display, munmap(results, 4096); } -static igt_output_t *set_fb_on_crtc(igt_display_t *display, int pipe, struct igt_fb *fb_info) +static igt_output_t *set_fb_on_crtc(igt_display_t *display, enum pipe pipe, struct igt_fb *fb_info) { igt_output_t *output; @@ -464,7 +464,7 @@ static void flip(igt_display_t *display, igt_remove_fb(display->drm_fd, &cursor_fb2); } -static inline uint32_t pipe_select(int pipe) +static inline uint32_t pipe_select(enum pipe pipe) { if (pipe > 1) return pipe << DRM_VBLANK_HIGH_CRTC_SHIFT; @@ -474,7 +474,7 @@ static inline uint32_t pipe_select(int pipe) return 0; } -static unsigned get_vblank(int fd, int pipe, unsigned flags) +static unsigned get_vblank(int fd, enum pipe pipe, unsigned flags) { union drm_wait_vblank vbl; -- cgit v1.2.3