Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2056087rwi; Tue, 1 Nov 2022 03:21:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4xZi5WrIDVGS0AF5B8qTf5L/dW8rgPNH50z7ZY58T+gFfRkwi0/JiPRiKh/M++aaq1SwVb X-Received: by 2002:a17:90a:e0f:b0:213:c7cc:892a with SMTP id v15-20020a17090a0e0f00b00213c7cc892amr13845055pje.201.1667298081572; Tue, 01 Nov 2022 03:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667298081; cv=none; d=google.com; s=arc-20160816; b=UaK7MOrOVeso3DM5EZmByb/8ry7x7r3xYdVInAfgmiN6uX4XCI2jRvCvRyx+Cf+Mm/ dJ6MO47SarUhE2CMfN5JpVzVyva+dpwcu6v7dpwltq8wgJjbfIIb2V6TgEBymUqexCcz rfyDrvsswuPQirjzSsX2czd0H3EltMVsb7LWfdJgss243X11axaT7qaaZCD2SSwjvOWG 6hgzgQanIwiSrZczJ5zyUfmKWhj0/O1zWmz3NcJmyst89vvb5VKu6M/h30UOb9v7kp7l rNW8460lf2anAZr8miW363ePGxKORT9uY9WdTyh3ALSfqNw6wRPB6t4yvaGsrSn1V7Rd xO0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=th4xE1kbxGXhvqp58bQuwMXJRdHQ2h80CsaIeNEDNYA=; b=aN0+f4lBrWh33YUzKiwps5DOpqT/hGDiCuI6LCNZw3VB0ohuv/84NMpGXlOgTwPZUW jWxuwH5Q+BswAEpzxh/6cX2pQTNO5ZLuOiJ1+nveIdkXWoMRXZzRATIMXW9MtRUNaww3 1bvN3GVZr/OYg10XG3EPdQNXT907FOQD82AqRMtV7f/QxdannUJ4uLafXsvY2Ifkc5+N 3BXqkp3za9xFGDNk4zSSfRwNtxt0EE9xgkhiGR+ufVDZ9t6vTincTOf981Djtkw95jYE C3/8k2KK/bcbglvBQevnskqbuEDco8sUhZ/3Me3dux1HgEdFNhFhbT1BujDV1rlvB3WL dybg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OYz9l1Y5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020a170902e55100b00186b84c723bsi15409153plf.419.2022.11.01.03.21.09; Tue, 01 Nov 2022 03:21:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OYz9l1Y5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229959AbiKAJHu (ORCPT + 97 others); Tue, 1 Nov 2022 05:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbiKAJHp (ORCPT ); Tue, 1 Nov 2022 05:07:45 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8176118E00 for ; Tue, 1 Nov 2022 02:07:44 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id cg5so146351qtb.12 for ; Tue, 01 Nov 2022 02:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=th4xE1kbxGXhvqp58bQuwMXJRdHQ2h80CsaIeNEDNYA=; b=OYz9l1Y5jipEZRqi3+Ap+YOfsah2VQ9iMf7WNs3maEj3q6h/Dfs9GFi+QIO/psu+Ly DXAj6alXARPIVeyTfkRlpPghdYn9KjMcm3ZMakzXUYkbjmZ+TJK/PWU2fMrTxurvUL/a k5Z1RkaTdV618nCftw9T1JwbvCjipnbpcD8DKhv2tJ3oQWNqHhq/A09jHd6IMtkmsd1a yT/ZmFkNL90owGNyD0V2xpVNSiAA8cg0kFUSoxa+L/SQo0xc9+lxGFReNtdLKJgsYH1f 8dLyNpX2GwhtFqMesZ74vzm/hZV+mc1E6BytoZE1AJP9l7humU+TKmx6sXgEk4kQOQYW Zr7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=th4xE1kbxGXhvqp58bQuwMXJRdHQ2h80CsaIeNEDNYA=; b=M5D4xKkstf6rrB0Bz/joOo+97pPdQVMjJdBehNR4Z80nUzRGcLLzq8EioUusi10Ili dKT1bvtQQsrdcLg+Bqudf6fwsiEsAMNXf8xxvxloTQwnN1a5glRR1vd1lK+X+n6Dxizn mkXwZK9gZbOgz0eJzVKiytG5fK+IQtCj4w9stwY9hzNHynMp/MtDnKVsvi7+8C0DPWtU pFosRt59l5Gp2vvA+KFxLQjHXcwLKHdbBk8ggLFDMPOTOFq+/pNtEbXSUVRf/SAwvB+I mKE4KFglpcQkEkDILPfSwSsuKOR+Ve/sg8p/Q/5xq7Gbu8zGH6r1JG7ADI9j2ls9Zkcb Oe2A== X-Gm-Message-State: ACrzQf3cNzmCUpevOnlFlm1yODuqncA7RYKSuzBoODyytkwM0Ceiiohh OSkguKidWi2g59nnQmda28O/euNNyIByZSdT4WU= X-Received: by 2002:a05:622a:147:b0:39c:dc0d:7d0f with SMTP id v7-20020a05622a014700b0039cdc0d7d0fmr13847372qtw.281.1667293663598; Tue, 01 Nov 2022 02:07:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tanju Brunostar Date: Tue, 1 Nov 2022 10:07:31 +0100 Message-ID: Subject: Re: [PATCH v2] staging: vt6655: change variable name wTimeStampOff To: Julia Lawall Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 1, 2022 at 9:43 AM Julia Lawall wrote: > > > > On Tue, 1 Nov 2022, Tanjuate Brunostar wrote: > > > Change the variable name wTimeStampOff to adhear to Linux kernel coding > > style, which does not allow naming variables in CamelCase. error is > > reported by checkpatch > > adhear -> adhere > > error -> Error > > Actually, the variable is written in Hungarian notation, given the little > w at the beginning of its name. > > Maybe > > "Remove the use of Hungarian notation, which is not used in the Linux > kernel." > > julia > Thanks > > > > Signed-off-by: Tanjuate Brunostar > > --- > > drivers/staging/vt6655/rxtx.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c > > index 1e5036121665..9bdcf2337235 100644 > > --- a/drivers/staging/vt6655/rxtx.c > > +++ b/drivers/staging/vt6655/rxtx.c > > @@ -54,7 +54,7 @@ > > */ > > #define CRITICAL_PACKET_LEN 256 > > > > -static const unsigned short wTimeStampOff[2][MAX_RATE] = { > > +static const unsigned short time_stamp_off[2][MAX_RATE] = { > > {384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, /* Long Preamble */ > > {384, 192, 130, 113, 54, 43, 37, 31, 28, 25, 24, 23}, /* Short Preamble */ > > }; > > @@ -130,7 +130,7 @@ static __le16 s_uFillDataHead(struct vnt_private *pDevice, > > > > static __le16 vnt_time_stamp_off(struct vnt_private *priv, u16 rate) > > { > > - return cpu_to_le16(wTimeStampOff[priv->preamble_type % 2] > > + return cpu_to_le16(time_stamp_off[priv->preamble_type % 2] > > [rate % MAX_RATE]); > > } > > > > -- > > 2.34.1 > > > > > >