From patchwork Tue Nov 15 12:40:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanjuate Brunostar X-Patchwork-Id: 20356 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2704803wru; Tue, 15 Nov 2022 04:51:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf47TIFUPBk4NG3APREtUgW//Lp+vr+acn+L3i118g4l8NI/MUlHMHHCRMVVwqaP+uGnT329 X-Received: by 2002:a05:6a00:2403:b0:56d:c342:ea5e with SMTP id z3-20020a056a00240300b0056dc342ea5emr18176529pfh.71.1668516693800; Tue, 15 Nov 2022 04:51:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668516693; cv=none; d=google.com; s=arc-20160816; b=JXHNPZ+Jjg9PtDNzPl6NX1ySJll32T6Pzb98PJpHHCtcaqiLNy4qx+Z3Vl9aIQhsC1 m5z4rgTqL3BHQkrqO5Sqp/GUAxnYpRevh8EFvxY37vdkyAuC6P7T9aP2bTj61iqqSbu2 wsOWJF9P5mwTua6rpnQWSJWkA396KXqnJk6sg6dxJ7MIoyizkVSr6NziTrcXi7+xA/It kiuMPfc77g/b3zdj3ZLNgGJkHXZafe5z/Ij3VLblzg74jAOK6TRDvNrWE6eVBuBzxtke krlW2vRmtFK54HS/dnHqnMHHRYJQ0REJkzOJtKAby3rMvyihLJ1ZZ2NwNn65Skv/IDpU AAFA== 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=9K7OHdISQ9ndYJcM7FeOopDqicN3TnOW0AKBc0hd7r4=; b=QcvHrU/UwChWjO55wCk0Roz9sSsVpTFNZzTGAMlMVD14aWZWTh6/zkdD1+jdNFsbqm Z9DaqAJ2I1H4Otwj7p3WIr+EyYw44c+fOnnFkPUzvyxX6Rg0E5uCHfiIP+BuklO9zGa9 PEgXBxr2X/alVK6WuhxPj/DMj7jfiH8bHYoeXffmObajw2DSOvvp9cn228A3+NkBptx4 xr/gy7nr8lMMr9Y10Y+iNF4F3u0rr6X1ZPq7D6Xtf6JHhNL6jRjx82/hliThlj8hJKxA PhJleEWDvWzaogjY9MXwP9b+lz8+ojsTQL8ageclLa1gVd1xoxzhdbVJn8dxGlztl8iP dg+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EVuGADnY; 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 x1-20020a63aa41000000b0043c64130f17si12895346pgo.107.2022.11.15.04.51.18; Tue, 15 Nov 2022 04:51:33 -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=EVuGADnY; 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 S232870AbiKOMk4 (ORCPT + 99 others); Tue, 15 Nov 2022 07:40:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232818AbiKOMkw (ORCPT ); Tue, 15 Nov 2022 07:40:52 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EEAB27153 for ; Tue, 15 Nov 2022 04:40:51 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id c25so17339919ljr.8 for ; Tue, 15 Nov 2022 04:40:51 -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=9K7OHdISQ9ndYJcM7FeOopDqicN3TnOW0AKBc0hd7r4=; b=EVuGADnY9FOdegDv7u0W/l+DAgxjrGyqM1nvo/0V8YD48lTvchKrzuP2BgRcg3tDPJ VTWFGGJ+O2+qzQQmKcehwOqfck9Ko+M7mEXMZ+po+CfyuC2AiDE6LEoH7T2i+BcNLzOv vd2wqOughcTVA4qpAdm2s09ax7/ayxh+CvjNp+MjGUOjuk3h+5B3pAeB+WmesJJmzczQ druyVSwW5blhk1WfLwcnfBoTGcD0mDTYDvfY26njwbp1eXFC9py7fIZTmoHmJ7J6UG9w i9D0UovTO6iCe4qUvwlgs/yq6gNIdSRlmxIr9x41MI9Z3nki6BIPmTX8VbKxA3RVMgzm Zv+A== 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=9K7OHdISQ9ndYJcM7FeOopDqicN3TnOW0AKBc0hd7r4=; b=DO9nNxur+s0jJybhmpWdNO8E1M0gE9wSDi+MUNWzklWYYA7rXvxyzjW5PMu77vFKwQ 71Z92xIxCAst0m5JHAGEdybsnAdvWekFMRVM2bumZouLbrPZFYCjGCTXHzp581pMkTKn ZOzbVanz/3mclgvgI1I8XFr6Drh05sp3ZwcpxyZPkzYT2cntWdBSMOQhReLDJr7B4TvJ niGQZCRdf7lJ7uScva5X6lMfei+HiDe5j9qMwvRJ5DP4xmPbkp66wfGIiGpTishxiLOn Ygw+hKspoGzrerrMTDO401o+MDiJfK6POgZBBdMM/vdaRYgLrFXb4+0QXwOfzrRobenx /R9Q== X-Gm-Message-State: ANoB5pnzSx6+u9rvl5a5FUca/kviWUQqRtcfSdu7662MVTEpDepHNePi 5VBU0sRu1uQ7LaxjO4aAiUgl6cp9u6IaYQ== X-Received: by 2002:a2e:a814:0:b0:277:40f:4c1c with SMTP id l20-20020a2ea814000000b00277040f4c1cmr5301342ljq.410.1668516049622; Tue, 15 Nov 2022 04:40:49 -0800 (PST) Received: from elroy-temp-vm ([20.240.130.248]) by smtp.gmail.com with ESMTPSA id a3-20020a05651c030300b002772414817esm2495208ljp.1.2022.11.15.04.40.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 04:40:49 -0800 (PST) Date: Tue, 15 Nov 2022 12:40:48 +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] staging: vt6655: change the function name s_vFillCTSHead Message-ID: MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749566560422086145?= X-GMAIL-MSGID: =?utf-8?q?1749566560422086145?= 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 visibility Signed-off-by: Tanjuate Brunostar --- drivers/staging/vt6655/rxtx.c | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 341e23054817..869685d27abe 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -21,7 +21,7 @@ * s_uGetRTSCTSDuration- get rtx/cts required duration * get_rtscts_time- get rts/cts reserved time * s_uGetTxRsvTime- get frame reserved time - * s_vFillCTSHead- fulfill CTS ctl header + * fill_cts_header- fulfill CTS ctl header * s_vFillFragParameter- Set fragment ctl parameter. * fill_rts_header- fulfill RTS ctl header * s_vFillTxKey- fulfill tx encrypt key @@ -724,19 +724,15 @@ static void fill_rts_header(struct vnt_private *pDevice, } } -static -void -s_vFillCTSHead( - struct vnt_private *pDevice, - unsigned int uDMAIdx, - unsigned char byPktType, - void *pvCTS, - unsigned int cbFrameLength, - bool bNeedAck, - bool bDisCRC, - unsigned short wCurrentRate, - unsigned char byFBOption -) +static void fill_cts_header(struct vnt_private *pDevice, + unsigned int uDMAIdx, + unsigned char byPktType, + void *pvCTS, + unsigned int cbFrameLength, + bool bNeedAck, + bool bDisCRC, + unsigned short wCurrentRate, + unsigned char byFBOption) { unsigned int uCTSFrameLen = 14; @@ -891,7 +887,7 @@ static void generate_tx_parameter(struct vnt_private *pDevice, buf->cts_rrv_time_ba = get_rtscts_time(pDevice, 3, byPktType, cbFrameSize, wCurrentRate); /* Fill CTS */ - s_vFillCTSHead(pDevice, uDMAIdx, byPktType, pvCTS, cbFrameSize, bNeedACK, bDisCRC, wCurrentRate, byFBOption); + fill_cts_header(pDevice, uDMAIdx, byPktType, pvCTS, cbFrameSize, bNeedACK, bDisCRC, wCurrentRate, byFBOption); } } else if (byPktType == PK_TYPE_11A) { if (pvRTS) {/* RTS_need, non PCF mode */