Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5914254rwb; Mon, 14 Nov 2022 11:16:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5nZ1lT+UaRSR6uwbnumCK5OsFXUVzqUj97B1qatc4Q2Ou4a3oQZ87nE1v6TmxHjVo+FKOm X-Received: by 2002:a17:907:2168:b0:78d:48ac:9041 with SMTP id rl8-20020a170907216800b0078d48ac9041mr11229666ejb.361.1668453375448; Mon, 14 Nov 2022 11:16:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668453375; cv=none; d=google.com; s=arc-20160816; b=tsBLfU2cZ7fIisSdo3ctlKN2BLp/ksNeHMnLDeEoWNe4EeqHfKXBzBUhe8WRxDQUL7 pTWAmEgDQdZfMC854J0uTht28URb250iTIKyKjQgmeUX2DQ993EuAWysRNSYcvQtwPBm oxlS7asDEaKNNTQXPq2CVROyoYZpt8pvJNrhxHXCBj+AXJckzfIzR2C1v/RE76FAKdFW jA0TP8Ic7HQ8uhKgR9mDS1YyU/3avxGmPWUDKRb94yznck0e0UpV+NcmV63rjhQfHvze ZpcfB0XEqXfavS8R607nXUImKLhtYopFHJZqB6XoCsSRvLUPmRlUMVqTIBXzwTBEKL0A nfGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=9JKVzVGrgZuMPpanGeTKxnchdaZhH7/pplUPKRtRDCY=; b=djWn62dYHMJDMRPqjBl6FkDPCFoGWebNl/ZadABkYQPhOyoliJ17VhE+5DXr+Wac29 gxwC5jvQv0Ldibg7EGC6WpuchZxqIm8tuVWGnmI7mGf1Xg0/Qyw/M7ICsIjGqCSMRhLm T/nh0/wq/qSpn80Rm5AsvO4+uilmCkqQRsV6aOlQP89JnuZU/nurlqQkw75W1FgvPQYN SAhSQclSE6BQEgsqAuK7D45M2QM4yZBIR82nyTTxByk6K5jDeAu4BaxIM/azrUUGjlxV bsXdCWD9UsQ0PM7i5/vQnQPCXSLCDdWUOB0+kV1omNM/uw9+R3mOvL6A5ChZmCpM8E6f cM4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qJVHbvI7; 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 k9-20020a17090646c900b007ae4717bf1esi7229016ejs.99.2022.11.14.11.15.52; Mon, 14 Nov 2022 11:16:15 -0800 (PST) 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=qJVHbvI7; 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 S235984AbiKNSum (ORCPT + 88 others); Mon, 14 Nov 2022 13:50:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbiKNSui (ORCPT ); Mon, 14 Nov 2022 13:50:38 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96950F2E for ; Mon, 14 Nov 2022 10:50:37 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id u2so14459942ljl.3 for ; Mon, 14 Nov 2022 10:50:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=9JKVzVGrgZuMPpanGeTKxnchdaZhH7/pplUPKRtRDCY=; b=qJVHbvI7jWTAHYwuxERb3JVW2BaBACzZ7LhglYV9qrM4leUjcPwLdr10aQ/u/IBoiR M2tA98YrlkhIzn7Fe9ya7NG4LdEljO0j9ZOtqxnGztnstbLBcjyu/EeYh8g8sLda0qlf splnjHKQvSFfyj31XDBDxMjqXs4YNSnnwZ/R07V7Cqqp21bZmjQOzWwidsIzl/wi/Ibd Pq/uefIPJcZskHFPZSw/1p85HiA8oGTU9GU2myDIbOTlnJWn3UmRiqLEMyyIhyBUMQ8b ox4tWYK2fxOoRbD+49OBe66bttnVkQkTb4HvNb2LFSeTxSviRxFqtLPrm/gm4aJvgaKW QrGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9JKVzVGrgZuMPpanGeTKxnchdaZhH7/pplUPKRtRDCY=; b=40BtfmOtq0LKFLoniu4U1m+YBj7MKL/WHVrO5LFm35TN7yKbbloIMo9UsXdnrYDz5x b/8BQ+D0+kEBY1suLiMQrszmm8rReWlegHVedFiYrImYCd1tUR75qF7K2ZCCZ8LGbkD8 GFr1MjHzygDvAfeRtXcm6FmGe5fq+s4DdC4ax3td9B9acFUhMBDPORLZ2sPs43Ioj8mO si3cs1f6y/0/aF0Fzvm/da08nyhSTresZ3u27vxsL9vuk7SUHEGL/zKPCuFHDSQBZEro 7Rk0lwwbcUFD1/3JS/qT+Pf3sCQVUDUHe1URI/C5uyoxDOkd5Z0KkVDR27H+zlhXbG8y ypNA== X-Gm-Message-State: ANoB5pn4tZR4ZhyxmpFdD+gmJBT1Jwi4LkRZHXnOLXrBxSt1S8evXzWt 8Thy9CggJk6U1jzIBmLvGttrX/nYfzrG/A== X-Received: by 2002:a2e:54f:0:b0:26f:a90a:fd82 with SMTP id 76-20020a2e054f000000b0026fa90afd82mr4976074ljf.248.1668451835805; Mon, 14 Nov 2022 10:50:35 -0800 (PST) Received: from elroy-temp-vm ([20.240.130.248]) by smtp.gmail.com with ESMTPSA id bg36-20020a05651c0ba400b002770eafaafbsm2137850ljb.99.2022.11.14.10.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 10:50:35 -0800 (PST) Date: Mon, 14 Nov 2022 18:50:34 +0000 From: Tanjuate Brunostar To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: [PATCH v2] staging: vt6655: change the function name s_vGenerateTxParameter Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Remove the use of Hungarian notation, which is not used in the Linux kernel. Reported by checkpatch Add indentation to the affected function to follow the Linux kernel coding style. This improves code visibility Signed-off-by: Tanjuate Brunostar --- v2: removed unnecessary function prototype drivers/staging/vt6655/rxtx.c | 44 +++++++++++------------------------ 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 715b323cd2a8..341e23054817 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. + * generate_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 @@ -85,18 +85,6 @@ static const unsigned short fb_opt1[2][5] = { #define DATADUR_A_F1 13 /*--------------------- Static Functions --------------------------*/ -static void s_vGenerateTxParameter(struct vnt_private *pDevice, - unsigned char byPktType, - struct vnt_tx_fifo_head *, - void *pvRrvTime, - void *pvRTS, - void *pvCTS, - unsigned int cbFrameSize, - bool bNeedACK, - unsigned int uDMAIdx, - void *psEthHeader, - unsigned short wCurrentRate); - static unsigned int s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType, unsigned char *pbyTxBufferAddr, @@ -854,21 +842,17 @@ s_vFillCTSHead( - * unsigned int cbFrameSize, Hdr+Payload+FCS */ -static -void -s_vGenerateTxParameter( - struct vnt_private *pDevice, - unsigned char byPktType, - struct vnt_tx_fifo_head *tx_buffer_head, - void *pvRrvTime, - void *pvRTS, - void *pvCTS, - unsigned int cbFrameSize, - bool bNeedACK, - unsigned int uDMAIdx, - void *psEthHeader, - unsigned short wCurrentRate -) +static void generate_tx_parameter(struct vnt_private *pDevice, + unsigned char byPktType, + struct vnt_tx_fifo_head *tx_buffer_head, + void *pvRrvTime, + void *pvRTS, + 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 bDisCRC = false; @@ -1097,8 +1081,8 @@ s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType, memset((void *)(pbyTxBufferAddr + wTxBufSize), 0, (cbHeaderLength - wTxBufSize)); /* Fill FIFO,RrvTime,RTS,and CTS */ - s_vGenerateTxParameter(pDevice, byPktType, tx_buffer_head, pvRrvTime, pvRTS, pvCTS, - cbFrameSize, bNeedACK, uDMAIdx, hdr, pDevice->wCurrentRate); + generate_tx_parameter(pDevice, byPktType, tx_buffer_head, pvRrvTime, pvRTS, pvCTS, + cbFrameSize, bNeedACK, uDMAIdx, hdr, pDevice->wCurrentRate); /* Fill DataHead */ uDuration = s_uFillDataHead(pDevice, byPktType, pvTxDataHd, cbFrameSize, uDMAIdx, bNeedACK, 0, 0, uMACfragNum, byFBOption, pDevice->wCurrentRate, is_pspoll); -- 2.34.1