]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid using dev_priv->info.gen directly.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 26 Sep 2017 21:13:46 +0000 (14:13 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 27 Sep 2017 15:38:14 +0000 (08:38 -0700)
commitbd30ca2d1a98fb9bd1f6ba63438068788b9e396b
tree1b5fcc9dbe70603b71e067375059406e3489c229
parent516726d46d84096b006e2648d8700d1a04d021cc
drm/i915: Avoid using dev_priv->info.gen directly.

Let's stop this usage before it spreads so much.

1. This check is not part of usual searches happening when adding
new platform.
2. There is already a duplication here with INTEL_INFO(dev_priv)->gen
and INTEL_GEN(dev_priv).

So let's please avoid yet another way.

Cc: Lyude <cpaul@redhat.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Shashank Sharma <shashank.sharma@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170926211346.12009-1-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_display.c