All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Pass dev_priv to intel_setup_outputs()
Date: Wed, 23 Nov 2016 15:59:54 +0200	[thread overview]
Message-ID: <20161123135954.GG31595@intel.com> (raw)
In-Reply-To: <1479908910-30042-1-git-send-email-ander.conselvan.de.oliveira@intel.com>

On Wed, Nov 23, 2016 at 03:48:30PM +0200, Ander Conselvan de Oliveira wrote:
> Pass dev_priv to intel_setup_outputs() and functions called by it, since
> those are all intel i915 specific functions. Also, in the majority of
> the functions dev_priv is used more often than dev. In the rare cases
> where there are a few calls back into drm core, a local dev variable was
> added.
> 
> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_drv.c      |   4 +-
>  drivers/gpu/drm/i915/i915_drv.h      |   2 +-
>  drivers/gpu/drm/i915/intel_crt.c     |   7 +-
>  drivers/gpu/drm/i915/intel_ddi.c     |   5 +-
>  drivers/gpu/drm/i915/intel_display.c | 120 ++++++++++++++++-------------------
>  drivers/gpu/drm/i915/intel_dp.c      |   8 +--
>  drivers/gpu/drm/i915/intel_drv.h     |  22 ++++---
>  drivers/gpu/drm/i915/intel_dsi.c     |   8 +--
>  drivers/gpu/drm/i915/intel_dvo.c     |   9 ++-
>  drivers/gpu/drm/i915/intel_hdmi.c    |   8 +--
>  drivers/gpu/drm/i915/intel_lvds.c    |   4 +-
>  drivers/gpu/drm/i915/intel_psr.c     |   4 +-
>  drivers/gpu/drm/i915/intel_sdvo.c    |  19 +++---
>  drivers/gpu/drm/i915/intel_tv.c      |   4 +-
>  14 files changed, 107 insertions(+), 117 deletions(-)
> 
<snip>
> diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c
> index 4e0d025..fe9a359 100644
> --- a/drivers/gpu/drm/i915/intel_dsi.c
> +++ b/drivers/gpu/drm/i915/intel_dsi.c
> @@ -1431,15 +1431,15 @@ static void intel_dsi_add_properties(struct intel_connector *connector)
>  	}
>  }
>  
> -void intel_dsi_init(struct drm_device *dev)
> +void intel_dsi_init(struct drm_i915_private *dev_priv)
>  {
> +	struct drm_device *dev = &dev_priv->drm;
>  	struct intel_dsi *intel_dsi;
>  	struct intel_encoder *intel_encoder;
>  	struct drm_encoder *encoder;
>  	struct intel_connector *intel_connector;
>  	struct drm_connector *connector;
>  	struct drm_display_mode *scan, *fixed_mode = NULL;
> -	struct drm_i915_private *dev_priv = to_i915(dev);
>  	enum port port;
>  	unsigned int i;
>  
> @@ -1474,8 +1474,8 @@ void intel_dsi_init(struct drm_device *dev)
>  
>  	connector = &intel_connector->base;
>  
> -	drm_encoder_init(dev, encoder, &intel_dsi_funcs, DRM_MODE_ENCODER_DSI,
> -			 "DSI %c", port_name(port));
> +	drm_encoder_init(&dev_priv->drm, encoder, &intel_dsi_funcs,
> +			 DRM_MODE_ENCODER_DSI, "DSI %c", port_name(port));

Here you have introduced a local 'dev', so this hunk doesn't seem
necessary. But no biggie. Patch lgtm.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-11-23 13:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-23 13:48 [PATCH] drm/i915: Pass dev_priv to intel_setup_outputs() Ander Conselvan de Oliveira
2016-11-23 13:59 ` Ville Syrjälä [this message]
2016-11-23 14:21   ` [PATCH v2] " Ander Conselvan de Oliveira
2016-11-24  3:44     ` kbuild test robot
2016-11-29  9:09       ` Daniel Vetter
2016-11-29 11:48         ` [PATCH] drm/i915: Fix intel_psr_init() kerneldoc Ander Conselvan de Oliveira
2016-11-30  1:29           ` kbuild test robot
2016-11-30  8:36             ` Ander Conselvan De Oliveira
2016-12-05 18:01               ` [lkp] " Ye Xiaolong
2016-12-08 11:15                 ` Ander Conselvan De Oliveira
2016-12-02  7:57           ` Conselvan De Oliveira, Ander
2016-11-23 16:46 ` ✓ Fi.CI.BAT: success for drm/i915: Pass dev_priv to intel_setup_outputs() (rev2) Patchwork
2016-11-25 15:05   ` Ander Conselvan De Oliveira
2016-11-29 14:53 ` ✓ Fi.CI.BAT: success for drm/i915: Pass dev_priv to intel_setup_outputs() (rev3) 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=20161123135954.GG31595@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=ander.conselvan.de.oliveira@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 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.