From patchwork Thu Jul 27 06:19:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tree Davies X-Patchwork-Id: 126689 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp905247vqo; Thu, 27 Jul 2023 00:02:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlENcdY0jyaniTDgY1VVhAbMSXancusfDrcfxi+E4IuIKON64atNXHKJ+sgRySc662+rxbYB X-Received: by 2002:a05:6a00:2e28:b0:67e:bf65:ae61 with SMTP id fc40-20020a056a002e2800b0067ebf65ae61mr4705607pfb.28.1690441364788; Thu, 27 Jul 2023 00:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690441364; cv=none; d=google.com; s=arc-20160816; b=WyxB1UgeeWVHVOW25GBj4Gryn5slTcYwfkiTyovgRPs2wbAWfh3MxICHDENmNct1eM hgqElsU6Ky8d+qqq/Y/xNR3k3qCXeB+KnANH37/PmDbxzrgO8PoRrOKsqoUiaQhgHiBl yeZBglrLXjwt60CjKmMVqBe53EMcyYT0gosypt50GtaHI9jJDIcb9eyVUuWHUSvtreZw WdlestuX6cw3DFgPuz+cjF/4LBcG+fXgv/34rjIr4SqjiEQ9SHPtjDPIR91cVJRUrTkJ WWjeo52cJDBv8aludF6vGpPYgtw9DJmJthXL0qSntRVi4oy1W/or+37uMVRNWCnxH2O8 2diw== 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:dkim-signature; bh=DZkEXZaJjBqV3BTwiG6ezEbUpv0JjBy4V1lRH3ROYkI=; fh=I5RbcQPTSTvrwt0yqig+bV2C3roPED/NlXe1P2BfE7E=; b=Ll5piww40hn6JJE/yRGEB5mDzKX0Xo1d22JWT1yrTElAK6fzPI+Frm40iD0tVlZ/WY Tc7gDadFeowqc3dfforauGeg7OFaN9ewH4ezfpD8FU/Whc7cRHrnDS2F+pZG+qa75gGq 3rm2BTJHyli7b1AAr+sYsVqijplAmnFqFtPX6KNUvJPJBJqQ9RK9hbWRKMuLxhG9s3mt 8tEiG2UhJro1tvh6hSWfQqX9CibAA4b+mrCMp2Io2sx+Pg8lqoElAajyq/lJg67wvi5V KVsu78Og3785j5y7UCRQCQQSUWZmWkJ4xz/6IpiWu3gmGVKry+OknKE03CVnOVh4B+IM fNsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=XqkN+moc; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=mNnvMHRv; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l184-20020a6388c1000000b00563e70c270bsi824900pgd.781.2023.07.27.00.02.32; Thu, 27 Jul 2023 00:02: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=@pobox.com header.s=sasl header.b=XqkN+moc; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=mNnvMHRv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232738AbjG0GSs (ORCPT + 99 others); Thu, 27 Jul 2023 02:18:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231624AbjG0GSn (ORCPT ); Thu, 27 Jul 2023 02:18:43 -0400 Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A49C19B for ; Wed, 26 Jul 2023 23:18:42 -0700 (PDT) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 9F9D72B788; Thu, 27 Jul 2023 02:18:41 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=Yme2ABWyZv9hU5EZNMuaiBtZz P3G0tOP4AY9ah8Wu+I=; b=XqkN+mocHCfLVJfFsPdoHd3RwMf5ESmpi2BBUQH0Z AOEiyRxIHUt5r6p1lMzH3aZRBhg+FWdLSVytaYwnPZW+D8uxvbEj+olpu08m9si9 3sR1+gx+hx22pe+kdAwPU7/QC6+qg+3fc2y0Tu6kokPEiDz+A1o39Scx1eqB844v A4= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 9856E2B786; Thu, 27 Jul 2023 02:18:41 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=darkphysics.net; h=from:to:cc:subject:date:message-id:in-reply-to:references:mime-version:content-transfer-encoding; s=2019-09.pbsmtp; bh=30LCb7fytoBphnXRNlksSDylD0H458KlWfAeyHSY7sU=; b=mNnvMHRvg5ZzdJy9gSqpq9TZmUGid6gWmfV5a+EjNjdx+ZpNwPUWbsKsfV+xtsnBjFheaK3o/n0DD8jh8v/hYFEMczwyd5Pf4rPrBmPdegOVc0j9Myp9ZHn4cQTx8eLoJbcDKomNr586oYzdCWwpExyt7V1faMKW0xUkUJ1qMNI= Received: from basil.darkphysics (unknown [76.146.178.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id C56CA2B782; Thu, 27 Jul 2023 02:18:36 -0400 (EDT) (envelope-from tdavies@darkphysics.net) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca, error27@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH v2 1/5] Staging: rtl8192e: Rename function ActivateBAEntry Date: Wed, 26 Jul 2023 23:19:44 -0700 Message-ID: <20230727061948.579480-2-tdavies@darkphysics.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727061948.579480-1-tdavies@darkphysics.net> References: <20230727061948.579480-1-tdavies@darkphysics.net> MIME-Version: 1.0 X-Pobox-Relay-ID: 6C767EEC-2C45-11EE-847C-B31D44D1D7AA-45285927!pb-smtp21.pobox.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NO_DNS_FOR_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: INBOX X-GMAIL-THRID: 1772556244330289127 X-GMAIL-MSGID: 1772556244330289127 Rename function ActivateBAEntry to activate_ba_entry in order to Fix checkpatch warning: Avoid CamelCase Signed-off-by: Tree Davies --- v2: Sent with git send-email drivers/staging/rtl8192e/rtl819x_BAProc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index acc19514bca6..965ffa8b78c2 100644 --- a/drivers/staging/rtl8192e/rtl819x_BAProc.c +++ b/drivers/staging/rtl8192e/rtl819x_BAProc.c @@ -10,7 +10,7 @@ #include "rtllib.h" #include "rtl819x_BA.h" -static void ActivateBAEntry(struct ba_record *pBA, u16 Time) +static void activate_ba_entry(struct ba_record *pBA, u16 Time) { pBA->b_valid = true; if (Time != 0) @@ -282,7 +282,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) else pBA->ba_param_set.field.buffer_size = 32; - ActivateBAEntry(pBA, 0); + activate_ba_entry(pBA, 0); rtllib_send_ADDBARsp(ieee, dst, pBA, ADDBA_STATUS_SUCCESS); return 0; @@ -379,7 +379,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) pAdmittedBA->ba_start_seq_ctrl = pPendingBA->ba_start_seq_ctrl; pAdmittedBA->ba_param_set = *pBaParamSet; DeActivateBAEntry(ieee, pAdmittedBA); - ActivateBAEntry(pAdmittedBA, *pBaTimeoutVal); + activate_ba_entry(pAdmittedBA, *pBaTimeoutVal); } else { pTS->bAddBaReqDelayed = true; pTS->bDisable_AddBa = true; @@ -479,7 +479,7 @@ void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS, pBA->ba_timeout_value = 0; pBA->ba_start_seq_ctrl.field.seq_num = (pTS->TxCurSeq + 3) % 4096; - ActivateBAEntry(pBA, BA_SETUP_TIMEOUT); + activate_ba_entry(pBA, BA_SETUP_TIMEOUT); rtllib_send_ADDBAReq(ieee, pTS->TsCommonInfo.Addr, pBA); }