From patchwork Tue Oct 25 23:37:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanjuate Brunostar X-Patchwork-Id: 11012 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1275917wru; Tue, 25 Oct 2022 16:40:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5zLKkPIIQoHGxcikdxEOGOoFy4vfq5ajoef9JXFTSgWIlldPoZWIpwe0HIaWIy1QMHyvIH X-Received: by 2002:aa7:810a:0:b0:55b:674d:d123 with SMTP id b10-20020aa7810a000000b0055b674dd123mr42141034pfi.52.1666741222732; Tue, 25 Oct 2022 16:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666741222; cv=none; d=google.com; s=arc-20160816; b=JrKAi2S8Gu+Dbe9uVNT5sZXjqkJbVEiassOqm7OmWM2AHkL4xxDUMgRI5HGpmJYXg3 +IeowbbIF8Ct+oeTYg9JpY/P+LXLbXHCvRc/eyWmQFjp9Z+Sso/WZ3tu0Wu55Rs/Nf9i 77ejjI4RoWnhTANtX/YGpQBGkYlrVKqY3afdaOhY9yBNTFd2PMVx75gjQNWJ28jyT7tX obKD9wL2GPqOTfjFIPZezB8EwmUNXGzetQ/eA4EDfMg/KkBRC8bU71C/xHW5XDjqrg+j elTBtNbpmil3lM+d9dQthiCqfKfNTvPDMxWD9rc5WyPXL2HVnOCZSS/oPaMhY1eBuUAv 4M3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9lBB9ttth4eSvyWXw/F4NyKEvhAfegcmcryN6aA811E=; b=xknJEtOV3qRQOWJjKg5vdPgMAuXDHUXWMIgbM57UD/sXHQ9rl+3ma1Su3lafINmNR4 bJn3mpm431+9OFVFpBWHPwrpXiuhJcUJRlOJ9ro298k/lrUVwG56dD7Z6/oEIem+d2DG xWJuPK6qBP92AwgUS7zHkDMmLqZnjIz6c9TyVnBBoW57FszqGNGPRNgVDVBvMoXFtaKz IOIcgmlDSno9gzZtqEwi4jL9LkTODyAspVAKx15pOEPoAqrGN8iRShH8IEVd56VQdSOT GqBMhCWaF6DnE6Q9JUNg1g386wQSZMO9qB4gKzhkNay1ywOxdT6Eo8uHUQBKMfcmsBIf z3yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iWjbB1Mk; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a1709029f8700b0018668e41784si4361202plq.13.2022.10.25.16.40.09; Tue, 25 Oct 2022 16:40:22 -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=iWjbB1Mk; 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 S232832AbiJYXjF (ORCPT + 99 others); Tue, 25 Oct 2022 19:39:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232884AbiJYXip (ORCPT ); Tue, 25 Oct 2022 19:38:45 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DF1F101E12 for ; Tue, 25 Oct 2022 16:38:19 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id j4so25421307lfk.0 for ; Tue, 25 Oct 2022 16:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9lBB9ttth4eSvyWXw/F4NyKEvhAfegcmcryN6aA811E=; b=iWjbB1MkJ8RdSGc1z4wf+4T1ykM7kFl5KvHpIftG9RAiamzCimo1+PPA58KNIfOF9k zN/2StTMzeXZg6QWr0FRwCHL75FDBNEwS6V8xSMBJg8ie7w/QlTIjyLcg/k0KjeaTNuU an7NAL6mwIXVorwvVF7/MU5qPbPDMmaEucLxXyDPETHvEkkzo9Z/J+SBToqqT42MX1od VCuyJ+HSoL1w8774Br39u2PBO26YO22OdM9UBJPBB1xKajeerVm2Jh9FtZN0+6x1e2Nv pobkJqamcVygUlnU6Y4uxhHwjW75iL2DUJYnLTFqxJMKr4l8qyFSnsrNuQgws0gn5Bm2 4GjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9lBB9ttth4eSvyWXw/F4NyKEvhAfegcmcryN6aA811E=; b=Xu6vT1/CvQrfIsRtn45hY3Dl8ot8ILSMZ+M3ZcrKw/TKGOwPXRNLWKC26px2oLn2vx QMtX8pV3RlsnUTomPLKDqtS7If5GVvQFCfkzR7l0O9YsjsHeM1cEmcMd7LPjjcUlUXyS 5h3Pbuz1iOEq3PatvPuEwV5Yxjpyrkdak9tnAdOSQT4LukOGijRn8e9BBE49OaWaZRVN hX9XITJ6PSsq/GZ3BsKYRE1rgRQhQehlmI40+GoqIm71H1ofib9ll5S+NLGDPi8gtuTE aztXzk8H7gaPUA7LgeOO5xpGskkO+8HsrzSJyvAmOGDJKyWHJMj+N4KAfPVuPkwtSql7 i77A== X-Gm-Message-State: ACrzQf374oH00/nxH+CvhiiUXwJoYcpbHxsBE6SPk4KvdYvty+1apSPg BoNxnyc2pAXp7z+NwDGgdwA= X-Received: by 2002:ac2:5e35:0:b0:4a4:754f:e2d5 with SMTP id o21-20020ac25e35000000b004a4754fe2d5mr16858525lfg.77.1666741099189; Tue, 25 Oct 2022 16:38:19 -0700 (PDT) Received: from elroy-temp-vm.gaiao0uenmiufjlowqgp5yxwdh.gvxx.internal.cloudapp.net ([20.240.130.248]) by smtp.googlemail.com with ESMTPSA id w17-20020a05651c119100b0026daf4fc0f7sm701969ljo.92.2022.10.25.16.37.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 16:37:57 -0700 (PDT) From: Tanjuate Brunostar To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev, Tanjuate Brunostar Subject: [PATCH 10/17] staging: vt6655: changed variable name: s_vGenerateTxParameter Date: Tue, 25 Oct 2022 23:37:06 +0000 Message-Id: <1663fb051fe1a25189bb578e1e6bcde7f9ad39d4.1666740522.git.tanjubrunostar0@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747704844272660517?= X-GMAIL-MSGID: =?utf-8?q?1747704844272660517?= change variable names s_vGenerateTxParameter to meet the linux coding standard, as it says to avoid using camelCase naming style. Cought by checkpatch Signed-off-by: Tanjuate Brunostar --- drivers/staging/vt6655/rxtx.c | 63 ++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 3d28cbfec618..fa11677ce119 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -10,7 +10,7 @@ * Date: May 20, 2003 * * Functions: - * s_vGenerateTxParameter - Generate tx dma required parameter. + * s_vgenerate_tx_parameter - Generate tx dma required parameter. * vGenerateMACHeader - Translate 802.3 to 802.11 header * cbGetFragCount - Calculate fragment number count * csBeacon_xmit - beacon tx function @@ -95,23 +95,24 @@ static void s_v_fill_rts_head(struct vnt_private *p_device, unsigned short wCurrentRate, unsigned char by_fb_option); -static void s_vGenerateTxParameter(struct vnt_private *p_device, - unsigned char by_pkt_type, - struct vnt_tx_fifo_head *, - void *pvRrvTime, - void *pv_rts, - void *pvCTS, - unsigned int cbFrameSize, - bool bNeedACK, - unsigned int uDMAIdx, - void *psEthHeader, - unsigned short wCurrentRate); - -static unsigned int -s_cbFillTxBufHead(struct vnt_private *p_device, unsigned char by_pkt_type, - unsigned char *pbyTxBufferAddr, - unsigned int uDMAIdx, struct vnt_tx_desc *pHeadTD, - unsigned int uNodeIndex); +static void s_vgenerate_tx_parameter(struct vnt_private *p_device, + unsigned char by_pkt_type, + struct vnt_tx_fifo_head *, + void *pvRrvTime, + void *pv_rts, + void *pvCTS, + unsigned int cbFrameSize, + bool bNeedACK, + unsigned int uDMAIdx, + void *psEthHeader, + unsigned short wCurrentRate); + +static unsigned int s_cbFillTxBufHead(struct vnt_private *p_device, + unsigned char by_pkt_type, + unsigned char *pbyTxBufferAddr, + unsigned int uDMAIdx, + struct vnt_tx_desc *pHeadTD, + unsigned int uNodeIndex); static __le16 s_uFillDataHead(struct vnt_private *p_device, unsigned char by_pkt_type, @@ -936,17 +937,17 @@ static void s_vFillCTSHead(struct vnt_private *p_device, - * unsigned int cbFrameSize, Hdr+Payload+FCS */ -static void s_vGenerateTxParameter(struct vnt_private *p_device, - unsigned char by_pkt_type, - struct vnt_tx_fifo_head *tx_buffer_head, - void *pvRrvTime, - void *pv_rts, - void *pvCTS, - unsigned int cbFrameSize, - bool bNeedACK, - unsigned int uDMAIdx, - void *psEthHeader, - unsigned short wCurrentRate) +static void s_vgenerate_tx_parameter(struct vnt_private *p_device, + unsigned char by_pkt_type, + struct vnt_tx_fifo_head *tx_buffer_head, + void *pvRrvTime, + void *pv_rts, + void *pvCTS, + unsigned int cbFrameSize, + bool bNeedACK, + unsigned int uDMAIdx, + void *psEthHeader, + unsigned short wCurrentRate) { u16 fifo_ctl = le16_to_cpu(tx_buffer_head->fifo_ctl); bool b_dis_crc = false; @@ -1223,8 +1224,8 @@ static unsigned int s_cbFillTxBufHead(struct vnt_private *p_device, memset((void *)(pbyTxBufferAddr + wTxBufSize), 0, (cbHeaderLength - wTxBufSize)); /* Fill FIFO,RrvTime,RTS,and CTS */ - s_vGenerateTxParameter(p_device, by_pkt_type, tx_buffer_head, pvRrvTime, pv_rts, pvCTS, - cbFrameSize, bNeedACK, uDMAIdx, hdr, p_device->wCurrentRate); + s_vgenerate_tx_parameter(p_device, by_pkt_type, tx_buffer_head, pvRrvTime, pv_rts, pvCTS, + cbFrameSize, bNeedACK, uDMAIdx, hdr, p_device->wCurrentRate); /* Fill DataHead */ uDuration = s_uFillDataHead(p_device, by_pkt_type, pvTxDataHd, cbFrameSize, uDMAIdx, bNeedACK, 0, 0, uMACfragNum, by_fb_option,