From: Florian Mickler Subject: [PATCH] fix typo in 915_read_blc_pwm_ctl Date: Thu, 16 Jun 2011 16:12:17 +0200 Message-ID: <1308233537-26489-1-git-send-email-florian@mickler.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx01.d-labs.de (ist.d-labs.de [213.239.218.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 814ED9E738 for ; Thu, 16 Jun 2011 07:13:16 -0700 (PDT) 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: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org The taken action if saveBLC_PWM_CTL2 != 0 is surprising looking only at this single function. Out of the general habit of having a 1:1 mapping between registers and save* variables, I suspect this is a typo. So here is a fix. (Don't know if this is a user-visible bug though.) Signed-off-by: Florian Mickler --- drivers/gpu/drm/i915/intel_panel.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index a06ff07..459ab82 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -137,8 +137,8 @@ static u32 i915_read_blc_pwm_ctl(struct drm_i915_private *dev_priv) dev_priv->saveBLC_PWM_CTL2 = val; } else if (val == 0) { I915_WRITE(BLC_PWM_PCH_CTL2, - dev_priv->saveBLC_PWM_CTL); - val = dev_priv->saveBLC_PWM_CTL; + dev_priv->saveBLC_PWM_CTL2); + val = dev_priv->saveBLC_PWM_CTL2; } } else { val = I915_READ(BLC_PWM_CTL); -- 1.7.5.3