Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2145190rdg; Sun, 15 Oct 2023 13:24:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHyiliw4S1kFYCJu01omEytKx3ANmrd8zV1XYvxXiKzmt7v0Csey/1WWISEZm11nonNVpf X-Received: by 2002:a54:4113:0:b0:3ab:88a0:78f8 with SMTP id l19-20020a544113000000b003ab88a078f8mr34904668oic.23.1697401462391; Sun, 15 Oct 2023 13:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697401462; cv=none; d=google.com; s=arc-20160816; b=MjOcvcC0G6VCFlvsHSTv4rEcuFI6FyJCiAKWn24EvgLicw0Htz+tQeR7gEFjsBYLa6 CUv8IC4mw6IBVVieqH6RuicgFld7zrEQzhVtAbfQWTrnwB4SoGnykbfJZ2FxW+ly4L+l 3yiTh07BuxVAS3d+EDraIBJE6Y3Yc/IIQVILa5T5i5wt4K+HPeQZRyQ6MMbGT3vYG5Z9 FxxSIEi49uYLQ5p9o1M2Cwmt5x+LhFDSHhmK7eDi0r2q98pPFUNCJMrHlDN7VG8fvTM0 Kse+uN0V+fx38KWAZJXxA8tDA9KTFMrbRmk7zcZ2usYOxN7ZpnMOoO/q0Q6wyTC9jsnc fveA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=j8EKEVq7xETVyP/OZQl8GFvNsqRyq5PaXInXR8hfZW8=; fh=+4UdGyz50k2f69fTeq69ArYE6JYRhp1DAFF2m14lpYY=; b=thtWUbrZnNWbFpV6HMRt6cZSGDjl4CuhmpxWJogYlOrtuRplGsxkUeBlhEE/yfpmhN babGEyZCQJFze5ZjrvK7ToKD5tO6q2C+A1Kw1EjcTV1kEOwk89x7VldvCtAI5Ck74pjm bpIKKPG4Cif7eFQ8hk5ejnc8A2LVkzpAY04IF+lM7ZodyXneZxuH+Fn4Xs+LsYaZUi+f aoldZA9NthuMDWImFpty+qdyNIGQkYrMpfpFxd75hPoNxOH2iU2VfiluTyEhDl160h/U HCMq+kpihjefKg/JLem/FmG5lz8UOCxGu4cfk2pyx4sYvKlSywvC/s9RP0hbvw3+w4uY oQQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=lmT63O9s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id b69-20020a633448000000b005ae39764b64si5318838pga.135.2023.10.15.13.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 13:24:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=lmT63O9s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6481280658F4; Sun, 15 Oct 2023 13:24:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230261AbjJOUYE (ORCPT + 99 others); Sun, 15 Oct 2023 16:24:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjJOUYD (ORCPT ); Sun, 15 Oct 2023 16:24:03 -0400 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6936EAB; Sun, 15 Oct 2023 13:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=j8EKEVq7xETVyP/OZQl8GFvNsqRyq5PaXInXR8hfZW8=; b=lmT63O9sBaE6tTwvvRQi7k91t1zue+xDYzESgRXsmMBCS6+Rla3wZP3e 0rdppf/D+9yNXY68AuEGHrg7/XzgD3kmy0pI9ZhIpH1Al7rMCmMifv4aW eQHYKUUK03eJssP7Jf5eI/bidomVg0Zynuv6gA59IQscpBXNqZ0kQhNdX g=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.03,226,1694728800"; d="scan'208";a="68765621" Received: from unknown (HELO hadrien) ([87.129.180.234]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2023 22:23:57 +0200 Date: Sun, 15 Oct 2023 22:23:54 +0200 (CEST) From: Julia Lawall To: Dorcas AnonoLitunya cc: outreachy@lists.linux.dev, Sudip Mukherjee , Teddy Wang , Greg Kroah-Hartman , linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] Staging: sm750fb: Rename displayControl In-Reply-To: <596de9b4cf3483d872b1ba25e1b02194aec34bac.1697400022.git.anonolitunya@gmail.com> Message-ID: References: <596de9b4cf3483d872b1ba25e1b02194aec34bac.1697400022.git.anonolitunya@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 15 Oct 2023 13:24:19 -0700 (PDT) On Sun, 15 Oct 2023, Dorcas AnonoLitunya wrote: > Rename variable displayControl to display_control. This follows > snakecase naming convention and ensures consistent naming style > throughout the file.Issue by checkpatch. Actually, the variable seems to be dispControl? julia > > Mutes the following checkpatch error: > CHECK: Avoid CamelCase: > > Signed-off-by: Dorcas AnonoLitunya > --- > drivers/staging/sm750fb/ddk750_mode.c | 32 +++++++++++++-------------- > 1 file changed, 16 insertions(+), 16 deletions(-) > > diff --git a/drivers/staging/sm750fb/ddk750_mode.c b/drivers/staging/sm750fb/ddk750_mode.c > index 431b273a347a..fc3db09de9ae 100644 > --- a/drivers/staging/sm750fb/ddk750_mode.c > +++ b/drivers/staging/sm750fb/ddk750_mode.c > @@ -15,7 +15,7 @@ > */ > static unsigned long > display_control_adjust_SM750LE(struct mode_parameter *mode_param, > - unsigned long dispControl) > + unsigned long disp_control) > { > unsigned long x, y; > > @@ -36,42 +36,42 @@ display_control_adjust_SM750LE(struct mode_parameter *mode_param, > ((x - 1) & CRT_AUTO_CENTERING_BR_RIGHT_MASK)); > > /* > - * Assume common fields in dispControl have been properly set before > + * Assume common fields in disp_control have been properly set before > * calling this function. > - * This function only sets the extra fields in dispControl. > + * This function only sets the extra fields in disp_control. > */ > > /* Clear bit 29:27 of display control register */ > - dispControl &= ~CRT_DISPLAY_CTRL_CLK_MASK; > + disp_control &= ~CRT_DISPLAY_CTRL_CLK_MASK; > > /* Set bit 29:27 of display control register for the right clock */ > /* Note that SM750LE only need to supported 7 resolutions. */ > if (x == 800 && y == 600) > - dispControl |= CRT_DISPLAY_CTRL_CLK_PLL41; > + disp_control |= CRT_DISPLAY_CTRL_CLK_PLL41; > else if (x == 1024 && y == 768) > - dispControl |= CRT_DISPLAY_CTRL_CLK_PLL65; > + disp_control |= CRT_DISPLAY_CTRL_CLK_PLL65; > else if (x == 1152 && y == 864) > - dispControl |= CRT_DISPLAY_CTRL_CLK_PLL80; > + disp_control |= CRT_DISPLAY_CTRL_CLK_PLL80; > else if (x == 1280 && y == 768) > - dispControl |= CRT_DISPLAY_CTRL_CLK_PLL80; > + disp_control |= CRT_DISPLAY_CTRL_CLK_PLL80; > else if (x == 1280 && y == 720) > - dispControl |= CRT_DISPLAY_CTRL_CLK_PLL74; > + disp_control |= CRT_DISPLAY_CTRL_CLK_PLL74; > else if (x == 1280 && y == 960) > - dispControl |= CRT_DISPLAY_CTRL_CLK_PLL108; > + disp_control |= CRT_DISPLAY_CTRL_CLK_PLL108; > else if (x == 1280 && y == 1024) > - dispControl |= CRT_DISPLAY_CTRL_CLK_PLL108; > + disp_control |= CRT_DISPLAY_CTRL_CLK_PLL108; > else /* default to VGA clock */ > - dispControl |= CRT_DISPLAY_CTRL_CLK_PLL25; > + disp_control |= CRT_DISPLAY_CTRL_CLK_PLL25; > > /* Set bit 25:24 of display controller */ > - dispControl |= (CRT_DISPLAY_CTRL_CRTSELECT | CRT_DISPLAY_CTRL_RGBBIT); > + disp_control |= (CRT_DISPLAY_CTRL_CRTSELECT | CRT_DISPLAY_CTRL_RGBBIT); > > /* Set bit 14 of display controller */ > - dispControl |= DISPLAY_CTRL_CLOCK_PHASE; > + disp_control |= DISPLAY_CTRL_CLOCK_PHASE; > > - poke32(CRT_DISPLAY_CTRL, dispControl); > + poke32(CRT_DISPLAY_CTRL, disp_control); > > - return dispControl; > + return disp_control; > } > > /* only timing related registers will be programed */ > -- > 2.42.0.345.gaab89be2eb > > >