From patchwork Tue Nov 1 12:37:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanjuate Brunostar X-Patchwork-Id: 13652 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2936139wru; Tue, 1 Nov 2022 05:40:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6959LvNYpuNQWrgZBCgyoE+18QxYt9RScxBbIHm0VvxtZrMLfJJhu3giS3ZLnui+JDoHB3 X-Received: by 2002:a05:6402:718:b0:463:275:4753 with SMTP id w24-20020a056402071800b0046302754753mr16700912edx.160.1667306424141; Tue, 01 Nov 2022 05:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667306424; cv=none; d=google.com; s=arc-20160816; b=pIYQzuFL7aOoC90Vjs/aSswiQj68yLLF10j1ovwW715EfvrivNpYv+bev1G8Bn/X6/ F8AxYZJeBkSnHfL8R88H4KWx95h23x2MDRsIJ+C+r6UxxEKiSIiTeoRol9a2gcd057zD qdjTTfUNjccoH+2JphdUpgqYb76MYoLpO0hcm4doWkC70ahPd5wwtEnlMJ98oIkdVQK9 WvhzAEl45iQEK/459U5fadbjn0o5wovaKmh0tX6CRxQaU/PqFH3TL/XS8DjP/3h93xEZ 09xD7GNYbxA7cPBoDBu6jWEcD8CS+QTo77flU1XPmJUu2UTxqr8u2UBsPLBasnZnXxXR /0mg== 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=iH9vhU7zv5GDc91Wl04v1T86uct201Qybf+k0VYUxHY=; b=XPHGBA1Z8+sUB3UK0wMOUhR60hAakL55agGPbAqyjX+tO0M+h8+lt4Lm3wah6lZJ2L o3OVpk5l5XNI0cQ481czddI7DSf3usQH1eJ3+/R1FuuNTnzoFK960Rhi2Q1M9ryNrxdS /50mx17Tl36VCzCr51sk9mSBYfPjY0MJvz9YBIi1HN+W1Idu49JD58qopKLMJ0GgC9+a HomcNAGp1B1vwayZXH6MWNRw+vtXNufIM3TCHox4NQyrbC+/L0VMyvtK6ISVWkCHA9qj 1/AVfrmoDs/2J4jvkvqRvNQlP5YY7+xyPTt9UMBx90nYTozkgBMRCVmRZ7WFjPWnalBQ H3Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EjZ6e9OV; 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 dt5-20020a170907728500b007815a44de91si12699796ejc.771.2022.11.01.05.40.00; Tue, 01 Nov 2022 05:40:24 -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=EjZ6e9OV; 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 S230331AbiKAMiv (ORCPT + 99 others); Tue, 1 Nov 2022 08:38:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbiKAMii (ORCPT ); Tue, 1 Nov 2022 08:38:38 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DADF4E91 for ; Tue, 1 Nov 2022 05:38:32 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id j4so23418931lfk.0 for ; Tue, 01 Nov 2022 05:38:32 -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=iH9vhU7zv5GDc91Wl04v1T86uct201Qybf+k0VYUxHY=; b=EjZ6e9OVZvrI71SL4MWaxmryGcntIUx9723MW27hUMhjG+dn5Lv5KBAVfTUaImKFe9 veyEUi93Njbdqj6+lzd/Qr3ll83KrIFT3twvl8CWAhm4i4gdTuLQ+OIbxjyhSOOK2Yfb wSTN63ulqw2GzsPl0DYqh6ZPbFT3/6o/7XiJItmVatnpNHMy6VUV+71i0BSfknMZLCwk OeDF4zRda9EjgdkpS3/GYkBRpvJVbjc1CUxgoPDTqJgeYfNlvDoNW7FV2N2PZHheNSwj xZG9Bq6iWk0XM3L9IL4OS/7qfwn5gdstZGBcDa32zf8iTQXvUbitfNI53G7M1Nbs9YBs 9T6A== 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=iH9vhU7zv5GDc91Wl04v1T86uct201Qybf+k0VYUxHY=; b=6x44bjGleqmZRaTpTFSwYGIOBrxfV7f9pPZAsBOfd32bHqqIyGz3XD8cS57H9IG3U6 yK4jlVhjmb3/gHzxxcr1RRh7SZ2h0U/fxcA6fnFpDxP6Zl+8xMD4Y+HCJ6YumrxgXpz8 IojXTain5QECauXz7KHC9G9UupjzQW8vgVmhQCF1fG7oMCvWY13ZPH66kvkp5tzMYy9E L6XtyHWxdlMl3HmgLnJhinxVx/sPz8zBi4hFvW6UkO2nlE29SLTPcGixCYtVB5QO1P0X vPy17qigEe/D8aam9iWeQ/EHHMyhMYYLeENce25F+ATuIMpfpMaNYi6yTpcsztDpMYF2 2p/A== X-Gm-Message-State: ACrzQf3+V2QKNrQUB8+j5fbBz/qvKJhzYk1ayxawDJxFNjy5P4BrXzSB A/qKFU96mPvmw62EPxozlKY= X-Received: by 2002:a05:6512:16a9:b0:4a0:349d:d30c with SMTP id bu41-20020a05651216a900b004a0349dd30cmr6843068lfb.149.1667306310957; Tue, 01 Nov 2022 05:38:30 -0700 (PDT) Received: from elroy-temp-vm.gaiao0uenmiufjlowqgp5yxwdh.gvxx.internal.cloudapp.net ([20.240.130.248]) by smtp.googlemail.com with ESMTPSA id p21-20020a2eb7d5000000b0026e897e3236sm1771625ljo.6.2022.11.01.05.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 05:38:30 -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 v2 1/2] change the function name s_vFillRTSHead Date: Tue, 1 Nov 2022 12:37:59 +0000 Message-Id: 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?1748297500909612896?= X-GMAIL-MSGID: =?utf-8?q?1748297500909612896?= Remove the use of Hungarian notation, which is not used in the Linux kernel. Reported by checkpatch Signed-off-by: Tanjuate Brunostar --- drivers/staging/vt6655/rxtx.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 31ae99b3cb35..d7e439cd8675 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -23,7 +23,7 @@ * s_uGetTxRsvTime- get frame reserved time * s_vFillCTSHead- fulfill CTS ctl header * s_vFillFragParameter- Set fragment ctl parameter. - * s_vFillRTSHead- fulfill RTS ctl header + * fill_rts_head- fulfill RTS ctl header * s_vFillTxKey- fulfill tx encrypt key * s_vSWencryption- Software encrypt header * vDMA0_tx_80211- tx 802.11 frame via dma0 @@ -85,15 +85,15 @@ static const unsigned short fb_opt1[2][5] = { #define DATADUR_A_F1 13 /*--------------------- Static Functions --------------------------*/ -static void s_vFillRTSHead(struct vnt_private *pDevice, - unsigned char byPktType, - void *pvRTS, - unsigned int cbFrameLength, - bool bNeedAck, - bool bDisCRC, - struct ieee80211_hdr *hdr, - unsigned short wCurrentRate, - unsigned char byFBOption); +static void fill_rts_head(struct vnt_private *pDevice, + unsigned char byPktType, + void *pvRTS, + unsigned int cbFrameLength, + bool bNeedAck, + bool bDisCRC, + struct ieee80211_hdr *hdr, + unsigned short wCurrentRate, + unsigned char byFBOption); static void s_vGenerateTxParameter(struct vnt_private *pDevice, unsigned char byPktType, @@ -912,7 +912,7 @@ s_vGenerateTxParameter( buf->rrv_time_a = vnt_rxtx_rsvtime_le16(pDevice, byPktType, cbFrameSize, wCurrentRate, bNeedACK); buf->rrv_time_b = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11B, cbFrameSize, pDevice->byTopCCKBasicRate, bNeedACK); - s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); + fill_rts_head(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); } else {/* RTS_needless, PCF mode */ struct vnt_rrv_time_cts *buf = pvRrvTime; @@ -931,7 +931,7 @@ s_vGenerateTxParameter( buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, byPktType, cbFrameSize, wCurrentRate, bNeedACK); /* Fill RTS */ - s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); + fill_rts_head(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); } else if (!pvRTS) {/* RTS_needless, non PCF mode */ struct vnt_rrv_time_ab *buf = pvRrvTime; @@ -945,7 +945,7 @@ s_vGenerateTxParameter( buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11B, cbFrameSize, wCurrentRate, bNeedACK); /* Fill RTS */ - s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); + fill_rts_head(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); } else { /* RTS_needless, non PCF mode */ struct vnt_rrv_time_ab *buf = pvRrvTime;