All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: jani.nikula@intel.com, lucas.demarchi@intel.com
Subject: [PATCH 1/6] drm/i915: use IS_JASPERLAKE()/IS_ELKHARTLAKE() instead of IS_PLATFORM()
Date: Fri,  5 Apr 2024 22:37:38 +0300	[thread overview]
Message-ID: <7ca5fabac6a6f5ac8e102b84d1e28502e79296f0.1712345787.git.jani.nikula@intel.com> (raw)
In-Reply-To: <cover.1712345787.git.jani.nikula@intel.com>

Avoid direct IS_PLATFORM() usage when we have the platform helpers.

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c b/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c
index 39e0ae6734ae..4d21ce734343 100644
--- a/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c
+++ b/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c
@@ -1726,9 +1726,9 @@ void intel_ddi_buf_trans_init(struct intel_encoder *encoder)
 		else
 			encoder->get_buf_trans = tgl_get_dkl_buf_trans;
 	} else if (DISPLAY_VER(i915) == 11) {
-		if (IS_PLATFORM(i915, INTEL_JASPERLAKE))
+		if (IS_JASPERLAKE(i915))
 			encoder->get_buf_trans = jsl_get_combo_buf_trans;
-		else if (IS_PLATFORM(i915, INTEL_ELKHARTLAKE))
+		else if (IS_ELKHARTLAKE(i915))
 			encoder->get_buf_trans = ehl_get_combo_buf_trans;
 		else if (intel_encoder_is_combo(encoder))
 			encoder->get_buf_trans = icl_get_combo_buf_trans;
-- 
2.39.2


  reply	other threads:[~2024-04-05 19:37 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-05 19:37 [PATCH 0/6] drm/i915 and drm/xe display integration cleanups Jani Nikula
2024-04-05 19:37 ` Jani Nikula [this message]
2024-04-05 19:37 ` [PATCH 2/6] drm/i915/dmc: define firmware URL locally Jani Nikula
2024-04-05 20:27   ` Lucas De Marchi
2024-04-08 16:00     ` Josh Boyer
2024-04-05 19:37 ` [PATCH 3/6] drm/i915: move i915_fixed.h to display/intel_fixed.h Jani Nikula
2024-04-05 19:37 ` [PATCH 4/6] drm/xe/display: clean up a lot of cruft from compat i915_drv.h Jani Nikula
2024-04-05 19:37 ` [PATCH 5/6] drm/xe/display: remove compat i915_gem.h Jani Nikula
2024-04-05 19:37 ` [PATCH 6/6] drm/xe/display: clean up compat i915_vgpu.h Jani Nikula
2024-04-05 20:04 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915 and drm/xe display integration cleanups Patchwork
2024-04-05 20:04 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-04-05 20:10 ` ✓ Fi.CI.BAT: success " Patchwork
2024-04-05 20:33 ` [PATCH 0/6] " Lucas De Marchi
2024-04-08  8:07   ` Jani Nikula
2024-04-05 21:41 ` ✓ CI.Patch_applied: success for " Patchwork
2024-04-05 21:41 ` ✗ CI.checkpatch: warning " Patchwork
2024-04-05 21:43 ` ✓ CI.KUnit: success " Patchwork
2024-04-05 21:54 ` ✓ CI.Build: " Patchwork
2024-04-05 21:57 ` ✓ CI.Hooks: " Patchwork
2024-04-05 21:58 ` ✗ CI.checksparse: warning " Patchwork
2024-04-05 22:23 ` ✓ CI.BAT: success " Patchwork
2024-04-06  2:04 ` ✗ Fi.CI.IGT: failure " 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=7ca5fabac6a6f5ac8e102b84d1e28502e79296f0.1712345787.git.jani.nikula@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.