From patchwork Tue Oct 25 23:37:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanjuate Brunostar X-Patchwork-Id: 11018 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1276390wru; Tue, 25 Oct 2022 16:41:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5J9PoYNpE/Byf+JtJFEAEqjLl6d3aNHQReVhC9CwqiCtxqdUvFoZiZwKoXOPQivYXDSott X-Received: by 2002:a05:6a00:1309:b0:535:d421:1347 with SMTP id j9-20020a056a00130900b00535d4211347mr41592062pfu.5.1666741304614; Tue, 25 Oct 2022 16:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666741304; cv=none; d=google.com; s=arc-20160816; b=TYO25h3oogfSL+FNFBWFUxeGw5LE1wpOqNxEc9NakFwdt16kWN2IS6vZsITPMyKB8G rttebOtmDvfNWqco1FpgqfbtKzdq6L9yn00eKWyeO+Jl15V82g/TDyFg0LE/M1g8SMg9 ph1xzhP35TQ+tIwGv3+KpxkIedwaP9FQfuv91U+JsBxAtV6w+gOQZGz/y/E3r6GKBp9t 5iAh+W4hfxopOF7RmVy9ZY+fbWqH4eQcZXxJXzD6J6IpVjkp8xW7wHhS1Ulm8F4P8bUU OT3tRV83TWIYIya2hAoairqxVirPccigLdXmHMdqszw/n2P1H85EIv081ERUI8AS2lZ+ Z4yQ== 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=OSbtAZQWWUA8oTDpFvYcQ18EJpkt7HUeuRn90GptEz0=; b=V+DtYkX3xNRoJDxQThtcMvdFURiPwvNClE2h8O4lQCjTGVEfFSt4AtyJBlAkWybK98 FusyeF7ResIWnPYgHGuW8cYyx4ujjVcr94GzS1eQHfy26yc9MQhqN6o6/4RZTQ4yTYUG 1/EY7RatdowVwfcvWxDE41tn9KWomTUoGyR/fIimGsnH9txcNuhUa1olLcQMRNJ85Vyc j6ZGsqCFyKG59DIMUGBN9GL6Sl4oI234Zt7Vy8z1GX4vW65nV52L3ji8QAdo6AKXtxd7 u6v5YWw5bTCgCgorP8iCB2d3QDLTae1L8uJmdmrhWEnEjNqbAhjyPyjH/mNBSHqYZnQU y6bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mStNlURi; 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 q12-20020a056a00084c00b0056183db44afsi5252599pfk.102.2022.10.25.16.41.31; Tue, 25 Oct 2022 16:41:44 -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=mStNlURi; 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 S232902AbiJYXjz (ORCPT + 99 others); Tue, 25 Oct 2022 19:39:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232892AbiJYXja (ORCPT ); Tue, 25 Oct 2022 19:39:30 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78DE91011A6 for ; Tue, 25 Oct 2022 16:39:10 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id j14so19408478ljh.12 for ; Tue, 25 Oct 2022 16:39:10 -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=OSbtAZQWWUA8oTDpFvYcQ18EJpkt7HUeuRn90GptEz0=; b=mStNlURizmGwwogj8cXNTWYxzr9XjCSZqreRIJpf9nQ5klAtRnZLrr+m7d7bX+Ttni rRhf+yKLeaFcFMpnOFlKF/ECFKxO+Cw8lcS3fT2zwcx7ecZUbXhpJmROC9oqImPt/sCx NTwyoTDID0iB/d74+Jfju2f6YjbVYJXZ+NIZuSz/f3ma/WImvMa9Gqk8rfnfX6ja8riT myWKjSIz4IvZgac5sugaijiVut/VncqugeF0MCqf8y8l4a6Im8R9tup+WjbK31+80nNg tPPV2lJrzcX16ULm1CG9Jf5oWS69ARn75EoxgiTO1Sp24UNAQRIswTEPW+0cTBPTHfLJ ssCA== 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=OSbtAZQWWUA8oTDpFvYcQ18EJpkt7HUeuRn90GptEz0=; b=C8rIiur5fajFB3EZ2Geeyvy+4a1yHbLR+1u686omip9A4FD2H9ogLFaoMAnnTy9YRp oCK+nMrv5UCzODlKoEfokNEr1swpHnEq6i1x+Sm7r0L9ZTku7ZE+oGSnQfk2fexhYzlh T3yYFKfRFmnH9cDlZevNbKTctF/VqGUgJ8UGQpgmGVGnGIGDAse0bYsGDoj2dsGxs7+p 0uMMBaV6tID+HrxByqNTwjkua21j4k5d7w7ToL3fR9Ezrt60lFQHQ/5b0v6HnYvLQr5X qfLKyOc/wDJBbE2vRyuGAwZyaRDgQzJl5DJ54GZ3W2IiQFJOQDJANeggZZSfXUYD3PZl 9VOA== X-Gm-Message-State: ACrzQf1uj+mLczh1n42qef5TPgwhJfRXZpwOp3a42NlXYOykHR4qCFeL E7ztjylRvf3WDqrojuNQfdE= X-Received: by 2002:a05:651c:c88:b0:26d:fea6:36b1 with SMTP id bz8-20020a05651c0c8800b0026dfea636b1mr15976530ljb.433.1666741148867; Tue, 25 Oct 2022 16:39:08 -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.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 16:39:02 -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 14/17] staging: vt6655: changed variable name: uDMAIdx Date: Tue, 25 Oct 2022 23:37:10 +0000 Message-Id: <97d1381cd24f3655ce6a17998805f0e2ca82c83f.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?1747704930212645415?= X-GMAIL-MSGID: =?utf-8?q?1747704930212645415?= change variable names uDMAIdx 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 | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 1704b63da2cd..5729798973b4 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -103,14 +103,14 @@ static void s_vgenerate_tx_parameter(struct vnt_private *p_device, void *pv_cts, unsigned int cb_frame_size, bool b_need_ack, - unsigned int uDMAIdx, + unsigned int u_dma_idx, 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, + unsigned int u_dma_idx, struct vnt_tx_desc *pHeadTD, unsigned int uNodeIndex); @@ -118,7 +118,7 @@ static __le16 s_uFillDataHead(struct vnt_private *p_device, unsigned char by_pkt_type, void *pTxDataHead, unsigned int cb_frame_length, - unsigned int uDMAIdx, + unsigned int u_dma_idx, bool b_need_ack, unsigned int uFragIdx, unsigned int cbLastFragmentSize, @@ -446,7 +446,7 @@ static __le16 s_uFillDataHead(struct vnt_private *p_device, unsigned char by_pkt_type, void *pTxDataHead, unsigned int cb_frame_length, - unsigned int uDMAIdx, + unsigned int u_dma_idx, bool b_need_ack, unsigned int uFragIdx, unsigned int cbLastFragmentSize, @@ -818,7 +818,7 @@ static void s_v_fill_rts_head(struct vnt_private *p_device, } static void s_vFillCTSHead(struct vnt_private *p_device, - unsigned int uDMAIdx, + unsigned int u_dma_idx, unsigned char by_pkt_type, void *pv_cts, unsigned int cb_frame_length, @@ -841,8 +841,8 @@ static void s_vFillCTSHead(struct vnt_private *p_device, if (by_pkt_type == PK_TYPE_11GB || by_pkt_type == PK_TYPE_11GA) { if (by_fb_option != AUTO_FB_NONE && - uDMAIdx != TYPE_ATIMDMA && - uDMAIdx != TYPE_BEACONDMA) { + u_dma_idx != TYPE_ATIMDMA && + u_dma_idx != TYPE_BEACONDMA) { /* Auto Fall back */ struct vnt_cts_fb *buf = pv_cts; /* Get SignalField, ServiceField & Length */ @@ -883,8 +883,8 @@ static void s_vFillCTSHead(struct vnt_private *p_device, p_device->abyCurrentNetAddr); } else { /* if (by_fb_option != AUTO_FB_NONE && - * uDMAIdx != TYPE_ATIMDMA && - * uDMAIdx != TYPE_BEACONDMA) + * u_dma_idx != TYPE_ATIMDMA && + * u_dma_idx != TYPE_BEACONDMA) */ struct vnt_cts *buf = pv_cts; /* Get SignalField, ServiceField & Length */ @@ -945,7 +945,7 @@ static void s_vgenerate_tx_parameter(struct vnt_private *p_device, void *pv_cts, unsigned int cb_frame_size, bool b_need_ack, - unsigned int uDMAIdx, + unsigned int u_dma_idx, void *psEthHeader, unsigned short wCurrentRate) { @@ -1001,7 +1001,7 @@ static void s_vgenerate_tx_parameter(struct vnt_private *p_device, cb_frame_size, wCurrentRate); /* Fill CTS */ - s_vFillCTSHead(p_device, uDMAIdx, by_pkt_type, pv_cts, cb_frame_size, + s_vFillCTSHead(p_device, u_dma_idx, by_pkt_type, pv_cts, cb_frame_size, b_need_ack, b_dis_crc, wCurrentRate, by_fb_option); } } else if (by_pkt_type == PK_TYPE_11A) { @@ -1046,7 +1046,7 @@ static void s_vgenerate_tx_parameter(struct vnt_private *p_device, static unsigned int s_cbFillTxBufHead(struct vnt_private *p_device, unsigned char by_pkt_type, unsigned char *pbyTxBufferAddr, - unsigned int uDMAIdx, + unsigned int u_dma_idx, struct vnt_tx_desc *pHeadTD, unsigned int is_pspoll) { @@ -1229,9 +1229,9 @@ static unsigned int s_cbFillTxBufHead(struct vnt_private *p_device, /* Fill FIFO,RrvTime,RTS,and CTS */ s_vgenerate_tx_parameter(p_device, by_pkt_type, tx_buffer_head, pv_rrv_time, pv_rts, pv_cts, - cb_frame_size, b_need_ack, uDMAIdx, hdr, p_device->wCurrentRate); + cb_frame_size, b_need_ack, u_dma_idx, hdr, p_device->wCurrentRate); /* Fill DataHead */ - uDuration = s_uFillDataHead(p_device, by_pkt_type, pvTxDataHd, cb_frame_size, uDMAIdx, + uDuration = s_uFillDataHead(p_device, by_pkt_type, pvTxDataHd, cb_frame_size, u_dma_idx, b_need_ack, 0, 0, uMACfragNum, by_fb_option, p_device->wCurrentRate, is_pspoll);