From: Daniel Vetter Subject: Re: [PATCH 1/3] drm/i915: make DP configuration vars less confusing in ironlake_crtc_mode_se Date: Wed, 11 Apr 2012 11:53:55 +0200 Message-ID: <20120411095355.GB4296@phenom.ffwll.local> References: <1334084285-4770-1-git-send-email-jbarnes@virtuousgeek.org> <1334092931_352626@CP5-2952> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 9D1839EAEF for ; Wed, 11 Apr 2012 02:53:03 -0700 (PDT) Received: by wibhj13 with SMTP id hj13so553344wib.12 for ; Wed, 11 Apr 2012 02:53:02 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1334092931_352626@CP5-2952> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Apr 10, 2012 at 10:22:09PM +0100, Chris Wilson wrote: > On Tue, 10 Apr 2012 11:58:03 -0700, Jesse Barnes wrote: > > Both PCH and CPU eDP are DP, so set the is_dp flag to true. Add > > is_cpu_edp and is_pch_edp bools to make checking for each less verbose > > (rather than has_edp_encoder && !intel_encoder_is_pch_edp() sprinkled > > everywhere). And rename the "has_edp_encoder" variable to just > > "edp_encoder". > > > > With the above variables cleaned up, the rest of the code becomes a bit > > more readable and clear. > > > > Signed-off-by: Jesse Barnes > > Ok, that took quite a bit of reading to be sure that the changes were > consistent. Unfortunately it also looks to be in its simplest form. > > Reviewed-by: Chris Wilson Queued for -next, thanks for the patch. I don't know what to do with the other two patches, are they supposed to be for -fixes? -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48