From patchwork Mon Jul 3 08:13:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lynn Lei X-Patchwork-Id: 9822165 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D0B3D60237 for ; Mon, 3 Jul 2017 08:13:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C45FC1FFAD for ; Mon, 3 Jul 2017 08:13:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B59F72853A; Mon, 3 Jul 2017 08:13:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C2AB1FFAD for ; Mon, 3 Jul 2017 08:13:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752219AbdGCINY (ORCPT ); Mon, 3 Jul 2017 04:13:24 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33891 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752035AbdGCINW (ORCPT ); Mon, 3 Jul 2017 04:13:22 -0400 Received: by mail-pg0-f65.google.com with SMTP id j186so22369419pge.1; Mon, 03 Jul 2017 01:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=SaYX05x9hjea0cBRQkLSQraOANdThama6OtkM6enk1Q=; b=ntsTYzOjhjtIL02lxbkqlYVs+k4SEQP+QDOcVxONu5YRB3XA42kkT1Zw+PJuVbtqhq wXHqx8FPM2WJI181MTA0Lm9IMU+2ownljw1DhNGi4r+2OaAN97SI3Aq4JrQFxEm5g+aj KFgmgrOOkVZgJpt1MBs66Wk8ferq7dv6597QlbRGUwPf+z8kfeGgcnqt8RWYuLEW4Mta 8rW4ELmKNrfz+4YhKqXEcGVn8qhnvpoIYZ7B6rMfa59dHO1icYAYqINToZ//n9qGOOoQ gs4GyEj1AirabDmzxedOBV0M1l8aAHuU7ucbwwRexptFw98NckK4wUpt/GYSDxdtqWNr gg4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=SaYX05x9hjea0cBRQkLSQraOANdThama6OtkM6enk1Q=; b=IjNIlKPuQ+EWrFC5WK4faATNRFIne+6pKPfZEuXQ/LbWtWFVZ1SOT7mzuQgUE7bkgK wumhNPxim8HPOjMK5tjZHy+AembwrgVLTm1FLsWSalIe8swv8f2BZEaSXEl6k6Njl0Tb DpO0NQO1bmaGPhbxT4mVabb88BhvuCSvfvOGYOU4hokMojWXRTLfNEoDZRS7VqvjJm80 rbGEDEdyKmfjxEM0uLBETY71PZNqbvlSD7LbQhxIQXOPJEXh4ZOHApV7II1Fv0lBeaVO LbPdHQINbgnvGu96yZv5dZWq2fOH1yaUgtAoaT47SP2vxUa10Umd/vOWoiAyh97QSfaK LY5Q== X-Gm-Message-State: AIVw110T+tyZETXfBcgGyznqeQSvJj9UPAyTV7m3QK6Ak13DUuIcHMwz 5eC6c3KtZHJsOA== X-Received: by 10.98.178.150 with SMTP id z22mr8724703pfl.165.1499069601631; Mon, 03 Jul 2017 01:13:21 -0700 (PDT) Received: from lynnl.wit ([13.75.91.79]) by smtp.gmail.com with ESMTPSA id x65sm2667783pfa.107.2017.07.03.01.13.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jul 2017 01:13:20 -0700 (PDT) Date: Mon, 3 Jul 2017 16:13:15 +0800 From: Lynn Lei To: gregkh@linuxfoundation.org Cc: sudipm.mukherjee@gmail.com, teddy.wang@siliconmotion.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] staging: sm750fb: fixed a assignment typo Message-ID: <20170703081315.GA1115@lynnl.wit> MIME-Version: 1.0 Content-Disposition: inline Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP fixed a typo issue in get_mxclk_freq(). the original code using PLL_CTRL_M_SHIFT for shifting to set N flag. which is not right, it should be PLL_CTRL_N_SHIFT. both PLL_CTRL_M_SHIFT and PLL_CTRL_N_SHIFT defined in drivers/staging/sm750fb/ddk750_reg.h Signed-off-by: Lynn Lei --- drivers/staging/sm750fb/ddk750_chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index 5e4bfb601cea..c51761221131 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -40,7 +40,7 @@ static unsigned int get_mxclk_freq(void) pll_reg = peek32(MXCLK_PLL_CTRL); M = (pll_reg & PLL_CTRL_M_MASK) >> PLL_CTRL_M_SHIFT; - N = (pll_reg & PLL_CTRL_N_MASK) >> PLL_CTRL_M_SHIFT; + N = (pll_reg & PLL_CTRL_N_MASK) >> PLL_CTRL_N_SHIFT; OD = (pll_reg & PLL_CTRL_OD_MASK) >> PLL_CTRL_OD_SHIFT; POD = (pll_reg & PLL_CTRL_POD_MASK) >> PLL_CTRL_POD_SHIFT;