Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp867287rdg; Fri, 13 Oct 2023 03:48:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHt1gYwBSYGOr+STon75O4JSiC28vuapa9czmt0MzEuidwc3s5uchzGcHySnm1I197rxSXV X-Received: by 2002:a05:6a20:1456:b0:134:73f6:5832 with SMTP id a22-20020a056a20145600b0013473f65832mr38201667pzi.16.1697194109828; Fri, 13 Oct 2023 03:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697194109; cv=none; d=google.com; s=arc-20160816; b=uB5UWzieehpzP/4h2Rz5+lDTu37XhRpx/jVxXesOcexG9pJbijh5HGDYo3VKTNKLv1 7/1oCB7cyx4tQJ0gOOtYXkCJuJBmavdLjkZWf4uckhWrIt30BUcFI6WL6nRG9EHHMLqU t3lHCZT94tKT/9JoHHsIb2uZLa0xEshOpNMhrC7BdN3pkzyCAaXn4QlN4Okhfwz+4Bfv 8x1YRe1a25oCk9POXKURX3Ad9mLkWYqRzxbUdjIRtLhOtbEsYW5KZyqcay0s3Sv7SZua FoLs+mb5ZrzQULsiUywaAA3EBG5syRcTqiIYNYqOvaIWu+8CcLcPVHtGYU4HcmvSZnq7 OSwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HLLFkGf7Achrz0z+pSaE//aRnm/rW1Ix0xcw7kiGLrg=; fh=+4UdGyz50k2f69fTeq69ArYE6JYRhp1DAFF2m14lpYY=; b=whNQHVS3oX+WSCJaCXYgA8d9wbWxlBhqV9a2lpVpia2VO+5BFBLe1/CfrQ4VcCCmet P5gnXOU6Y/Gbv/5JvNZrlG4eiVq8TpeA9WS6eK9Qk0tu0oIoZZzRGDciU4BphnzgR4Rn SK2JtDM3eVavZBOqhiB6KMP594uFWBF0lnjWUZVooMxhYQJuHtWtHDhHUFE7GjEfz2ek Gwn8pQJ4QxG5ypIPc+WFovFNjAS0MVCZWGCoXyhmKxYmPCr8RbZX8Ki7kjbYzHRBUbQD cDrKqtIQHFjYoc+ulUMh5MAb52JytefESHW4MNRwGJkAF/X+bEpZcm6173qO34PGFgTW osPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YMBZzBsv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id c5-20020a6566c5000000b0058543c16567si4320702pgw.459.2023.10.13.03.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 03:48:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YMBZzBsv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 37CEC802DBBB; Fri, 13 Oct 2023 03:48:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230079AbjJMKsQ (ORCPT + 99 others); Fri, 13 Oct 2023 06:48:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbjJMKsO (ORCPT ); Fri, 13 Oct 2023 06:48:14 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 147B6C9 for ; Fri, 13 Oct 2023 03:48:13 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-32d834ec222so1855106f8f.0 for ; Fri, 13 Oct 2023 03:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697194091; x=1697798891; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=HLLFkGf7Achrz0z+pSaE//aRnm/rW1Ix0xcw7kiGLrg=; b=YMBZzBsvWrXzr+2Lui3vC3LGzmnhKWRPLcnD4DAH2B9gmTZ5mUfChkGGZg6KPRV1xG QSixK2jNL/qY7uGbPDRtSsFncVVHCwVLbynkm/PfgWaembmTl4WmDR++KAsJftCXUOzy MhaeA3fOQoTLLd/2vul/otNAluMEVvTA4oplvHiCIhblBcwV909SZW6LKEWSfRH0DIrc aAFIcgfBJOEgjerNi4qtt7Kd+7+6lfboEBDw9xgK/ngYtAHBHdksxBNv0cXKxtxSR8/A ORiSSzXHjjQEKuX231JVpptaBd+owl43k1XgCDvk5foZO3S5i5kUINDU7rfandIqRZRE kBLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697194091; x=1697798891; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HLLFkGf7Achrz0z+pSaE//aRnm/rW1Ix0xcw7kiGLrg=; b=wVr8lCu3+hLKdU9T92XEPVQIUxLX51acB09O9C0d8sryXqVOKfWCk4bZ4TF38DuXeM Um1vNLwE/TOuKr+UcKrLmTI4/vXnHj6d9WzR51TT/HvDgonrg5rBkc75haUC1FV91Kz0 Tuy8cM4VLVy3DYVlA2kGKE3aS2Bqz9R8HuhKnPxeT1JULPom8sxvglUJyzHmL/P/3kJR u0rzNMO6wVL0GdWKgbO5zB3Z5ym4Nco9eGrMrIygvGJwmckSvfi8pzfhvsPw8/cAOQ4K h3xvgw4+R+rJwZTJTIyOndsZ6OMT2S7YM7u3/JuKxTgu8wCtFV8C9/S+mS/+OkXtAK0n KzjA== X-Gm-Message-State: AOJu0Ywb3KOKGvKxjJg42ybgPL7pfvgRKHuo0nOYqHYRZBfyafFsSCSW ljPbxKSwRD9NYxtWOUbB8BAxBA== X-Received: by 2002:a5d:4b48:0:b0:319:7a91:7107 with SMTP id w8-20020a5d4b48000000b003197a917107mr21319385wrs.48.1697194091127; Fri, 13 Oct 2023 03:48:11 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id d7-20020adfa347000000b0032d72f48555sm5239011wrb.36.2023.10.13.03.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 03:48:10 -0700 (PDT) Date: Fri, 13 Oct 2023 13:48:08 +0300 From: Dan Carpenter 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] [PATCH]Staging: sm750fb:Add snakecase naming style Message-ID: References: <20231013104220.7527-1-anonolitunya@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231013104220.7527-1-anonolitunya@gmail.com> 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 morse.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 (morse.vger.email [0.0.0.0]); Fri, 13 Oct 2023 03:48:27 -0700 (PDT) On Fri, Oct 13, 2023 at 01:42:15PM +0300, Dorcas AnonoLitunya wrote: > From: Dorcas Anono Litunya > > Change camelCase variables in file to snake_case for consistent naming > practices. Issue found by checkpatch. > > Signed-off-by: Dorcas Anono Litunya > --- > drivers/staging/sm750fb/ddk750_mode.c | 86 +++++++++++++-------------- > drivers/staging/sm750fb/ddk750_mode.h | 2 +- > drivers/staging/sm750fb/sm750_hw.c | 2 +- > 3 files changed, 45 insertions(+), 45 deletions(-) > > diff --git a/drivers/staging/sm750fb/ddk750_mode.c b/drivers/staging/sm750fb/ddk750_mode.c > index e00a6cb31947..f08dcab29172 100644 > --- a/drivers/staging/sm750fb/ddk750_mode.c > +++ b/drivers/staging/sm750fb/ddk750_mode.c > @@ -14,13 +14,13 @@ > * in bit 29:27 of Display Control register. > */ > static unsigned long > -displayControlAdjust_SM750LE(struct mode_parameter *pModeParam, > - unsigned long dispControl) > +display_control_adjust_SM750LE(struct mode_parameter *p_mode_param, The p stands for pointer. We don't like that naming style. Just call it mode_param. Thes are the renamed things. displayControlAdjust_SM750LE => display_control_adjust_SM750LE pModeParam => p_mode_param dispControl => disp_control programModeRegisters => program_mode_registers ddk750_setModeTiming => ddk750_set_mode_timing I feel like this would be better broken up probably into one variable per patch. It's jumping around between files. These variables are not closely related. regards, dan carpenter