From: Jani Nikula <jani.nikula@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jani.nikula@intel.com
Subject: [PATCH i-g-t 04/16] lib/kms: rename struct igt_display to _igt_display
Date: Tue, 14 Apr 2026 10:14:24 +0300 [thread overview]
Message-ID: <ebfb243ade55da5e4c38d15e991be59436311633.1776150714.git.jani.nikula@intel.com> (raw)
In-Reply-To: <cover.1776150714.git.jani.nikula@intel.com>
Prefer igt_display_t over struct igt_display, and rename the struct to
avoid accidental use. The named struct is only needed for the typedef
declaration.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
lib/igt_kms.c | 2 +-
lib/igt_kms.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 2dbf9ec38458..2d758b63c043 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -4012,7 +4012,7 @@ static int igt_primary_plane_commit_legacy(igt_plane_t *primary,
igt_crtc_t *crtc,
bool fail_on_error)
{
- struct igt_display *display = primary->crtc->display;
+ igt_display_t *display = primary->crtc->display;
igt_output_t *output = igt_crtc_get_output(crtc);
drmModeModeInfo *mode;
uint32_t fb_id, crtc_id;
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 9b8614c4e6b8..2e2870854634 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -378,7 +378,7 @@ extern const char * const igt_plane_prop_names[];
*/
extern const char * const igt_colorop_prop_names[];
-typedef struct igt_display igt_display_t;
+typedef struct _igt_display igt_display_t;
typedef struct igt_crtc igt_crtc_t;
typedef uint32_t igt_fixed_t; /* 16.16 fixed point */
@@ -516,7 +516,7 @@ typedef struct {
igt_crtc_t *crtc;
} igt_output_crtc_t;
-struct igt_display {
+struct _igt_display {
int drm_fd;
int log_shift;
int n_crtcs;
--
2.47.3
next prev parent reply other threads:[~2026-04-14 7:15 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-14 7:14 [PATCH i-g-t 00/16] igt: clean up typedef usage, use for_each_output() more Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 01/16] tests: prefer igt_plane_t over struct igt_plane Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 02/16] lib/kms: rename struct igt_plane to _igt_plane Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 03/16] tests: prefer igt_display_t over struct igt_display Jani Nikula
2026-04-14 7:14 ` Jani Nikula [this message]
2026-04-14 7:14 ` [PATCH i-g-t 05/16] lib/kms: rename struct igt_crtc to _igt_crtc Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 06/16] lib/kms: drop struct igt_colorop definition Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 07/16] tests/amdgpu/amd_abm: use for_each_output() Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 08/16] tests/amdgpu/amd_hotplug: " Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 09/16] tests/amdgpu/amd_subvp: " Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 10/16] tests/amdgpu/amd_dp_dsc: " Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 11/16] tests/amdgpu/amd_plane: " Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 12/16] tests/kms_atomic_transition: " Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 13/16] tests/kms_colorop: " Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 14/16] tests/kms_content_protection: " Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 15/16] tests/kms_getfb: " Jani Nikula
2026-04-14 7:14 ` [PATCH i-g-t 16/16] tests/kms_writeback: " Jani Nikula
2026-04-14 9:59 ` ✓ Xe.CI.BAT: success for igt: clean up typedef usage, use for_each_output() more Patchwork
2026-04-14 10:14 ` ✓ i915.CI.BAT: " Patchwork
2026-04-14 11:11 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-04-14 14:08 ` [PATCH i-g-t 00/16] " Ville Syrjälä
2026-04-14 15:51 ` Jani Nikula
2026-04-14 16:09 ` Ville Syrjälä
2026-04-14 16:47 ` ✓ i915.CI.Full: success for " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ebfb243ade55da5e4c38d15e991be59436311633.1776150714.git.jani.nikula@intel.com \
--to=jani.nikula@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox