Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Imre Deak <imre.deak@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 4/5] drm/i915/dp_mst: Simplify getting a drm_device pointer needed by to_i915()
Date: Wed, 08 Jan 2025 19:02:44 +0200	[thread overview]
Message-ID: <875xmpkzm3.fsf@intel.com> (raw)
In-Reply-To: <20250108151916.491113-5-imre.deak@intel.com>

On Wed, 08 Jan 2025, Imre Deak <imre.deak@intel.com> wrote:
> Simplify getting a drm_device pointer when using to_i915() in
> intel_dp_mst.c from the already available intel_display object, instead
> of getting it from a DRM KMS object.
>
> While at it rename dev_priv to i915, following the driver's standard
> terminology.
>
> Suggested-by: Jani Nikula <jani.nikula@intel.com>
> Signed-off-by: Imre Deak <imre.deak@intel.com>

I don't much care about dev_priv -> i915 renames anymore, since the goal
is to remove both. Anyway,

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_dp_mst.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> index 85f451c986ae8..fbc504037a969 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> @@ -1423,7 +1423,7 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
>  {
>  	struct intel_connector *connector = to_intel_connector(_connector);
>  	struct intel_display *display = to_intel_display(connector);
> -	struct drm_i915_private *dev_priv = to_i915(connector->base.dev);
> +	struct drm_i915_private *i915 = to_i915(display->drm);
>  	struct intel_dp *intel_dp = connector->mst_port;
>  	struct drm_dp_mst_topology_mgr *mgr = &intel_dp->mst_mgr;
>  	struct drm_dp_mst_port *port = connector->port;
> @@ -1442,7 +1442,7 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
>  		return 0;
>  	}
>  
> -	*status = intel_cpu_transcoder_mode_valid(dev_priv, mode);
> +	*status = intel_cpu_transcoder_mode_valid(i915, mode);
>  	if (*status != MODE_OK)
>  		return 0;
>  
> @@ -1526,7 +1526,7 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
>  		return 0;
>  	}
>  
> -	*status = intel_mode_valid_max_plane_size(dev_priv, mode, num_joined_pipes);
> +	*status = intel_mode_valid_max_plane_size(i915, mode, num_joined_pipes);
>  	return 0;
>  }

-- 
Jani Nikula, Intel

  reply	other threads:[~2025-01-08 17:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-08 15:19 [PATCH 0/4] drm/i915/dp_mst: Fix error handling/clean up pointer use Imre Deak
2025-01-08 15:19 ` [PATCH 1/5] drm/i915/dp_mst: Fix error handling while adding a connector Imre Deak
2025-01-08 15:19 ` [PATCH 2/5] drm/i915/dp_mst: Use intel_connector vs. drm_connector pointer in intel_dp_mst.c Imre Deak
2025-01-08 15:19 ` [PATCH 3/5] drm/i915/dp_mst: Simplify using to_intel_display() passing it an intel_connector pointer Imre Deak
2025-01-08 17:01   ` Jani Nikula
2025-01-08 15:19 ` [PATCH 4/5] drm/i915/dp_mst: Simplify getting a drm_device pointer needed by to_i915() Imre Deak
2025-01-08 17:02   ` Jani Nikula [this message]
2025-01-08 15:19 ` [PATCH 5/5] drm/i915/dp_mst: Use intel_display::platform.alderlake_p instead of IS_ALDERLAKE_P() Imre Deak
2025-01-08 17:02   ` Jani Nikula
2025-01-08 17:30 ` ✗ i915.CI.BAT: failure for drm/i915/dp_mst: Fix error handling/clean up pointer use Patchwork
2025-01-08 18:25   ` Imre Deak
2025-01-10 15:43 ` ✓ i915.CI.BAT: success for drm/i915/dp_mst: Fix error handling/clean up pointer use (rev2) Patchwork
2025-01-13 13:26   ` Imre Deak
2025-01-14 17:25 ` ✗ i915.CI.Full: 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=875xmpkzm3.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=imre.deak@intel.com \
    --cc=intel-gfx@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