Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2803298rdh; Sun, 26 Nov 2023 21:36:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhcoCFqiAFIheFc9eygsbeqESwYNaK+jcSrXIGwcYeGaMdRQCHvSXa/elUfV/HowgNeoFo X-Received: by 2002:a05:6870:1f0e:b0:1fa:4071:52e with SMTP id pd14-20020a0568701f0e00b001fa4071052emr4294880oab.25.1701063418458; Sun, 26 Nov 2023 21:36:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701063418; cv=none; d=google.com; s=arc-20160816; b=viU/eYY6CzaFvQeNEYNjGFjuTZhnd3X2n4GZLnH18bMoQEUZO0yVkhVbYEuNJYDT3K P570bOCQLacnj77OvqCiLzbxt3B0wZE8hggCM+kAJ/tHxDZQeLjtULSBMpZJDnfX2Ygo ZTZ+RX/hHydwylREqJIo4wbT2qx0E70rbHU/c30nM9cGaD0dajo+2GqUmkNLKxZqPfym krjPJx6dQY/fmSWQwonTv/g99WdLOmLSzwDTUd0TMYPEvvfjNbr8NFUTv3HT8nXPqmlh qbp7MZL1SrC4Gwl4lUnzozM+d4f8n2gfFcfZepBYzpVRSVm92nLROjc84mJLAD5v9VXg TlSg== 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=7IN7Uz/ApgY1f3u5IU30JsgnfKyUE/XtB4TY8u0u2IE=; fh=p32Pg0zBdFjDUOpUp1txX3SLnGswM8C/CMMa7TUpsLA=; b=vhfPcGC5OSn/H7xOMxduWWovWmy8o4xMEbn6b6SStYTQ0hZou54ZUFKfQdXZIJGs3/ 93HHnhOSQ9l5J1CjiwIs4JPrNtPSnP2xpB/Iol6adv3Idxp0531dERSYun9vTsaGkHA9 DPwTSQeUlLRgx9iVBpAxJ+jPgKMqPdS5q/bTPw4niDfh8Rz4Znt0rn+ZoDf062wS72cj 16Gh0RC/8TBbsnTMTC5q1JCQqSGKkqImwRHdwR5jG0c0VQ09wUPxZpC98nIdmFzBCqJe ghI0eeDQum20ALx0UunXoFqbgasFhxNIllRfDDFUwsjBBPLOfFcVU5RIhnBoxNExtxNg 7s4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=d97KayVX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id g10-20020a056a0023ca00b00690f8063627si9255024pfc.38.2023.11.26.21.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 21:36:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=d97KayVX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CD13180615C0; Sun, 26 Nov 2023 21:36:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231599AbjK0Fgm (ORCPT + 99 others); Mon, 27 Nov 2023 00:36:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjK0FgV (ORCPT ); Mon, 27 Nov 2023 00:36:21 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C24918E for ; Sun, 26 Nov 2023 21:36:26 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1cfae5ca719so13902225ad.0 for ; Sun, 26 Nov 2023 21:36:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1701063385; x=1701668185; darn=vger.kernel.org; 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=7IN7Uz/ApgY1f3u5IU30JsgnfKyUE/XtB4TY8u0u2IE=; b=d97KayVXdvR/FWwj99cYcoaTjpo3yqJAyXPiwUj/ZKdvRGdWbyeSKx7F2j+PMqVsL8 +4p+vc876H3barusarVNngIUi6drTbjWvcBgW5MbXYOcvoN7s22DRWSHMzY8XbFA6lNr x36d+17mMTdIrQuHdMKIFbNQ/H3RPvM/BBqej0eluIQF4N6fcUyam0y9ybuGJToDfeeH 8FhmmlfGiwjBIiiZOpdAgMH0tklFB9GQ+JYFNqX/EKXggHulw1xRJW4t7PpHn3Hrn9KV jfRWAPt0JlAZ/xHNL01DLsO8k9cIOsR+agPciKeqG3FbMmJqJ7sQW4ob/PF50n8mBTgR Fz3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701063385; x=1701668185; 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=7IN7Uz/ApgY1f3u5IU30JsgnfKyUE/XtB4TY8u0u2IE=; b=Rim5BIJOt9O2M4ZEOb7OiryKUK4KQSRWoFTe3y7Ebk/HFW4L2g7O0ywFhPil/uP1Od cvI4g+A/s5GZQNtqGcvsBjkIZGu6lTY6PsFr8DD5w5HF5HnAs8bB4hEvOsyt0KX35XxD y+RwUzpZrJ2ZdYctrghzG1D5ShOnsWGaNohT5KK9XTDkYSqn1C9ZrbFd/iVJt9XxQqcS UdQx9EF+mbbHa6Yf1wd+4Ru5LciWtEB6v66Cfsc8XU9hKxLzDght5lFsnBsToZ0GTMwk 1jmVZ3+QEWwm3hZWmMiDPG+n/NXs+fleQzz9MrE1TFirNs1kftSxMCq6smOefEftzDLn /fDA== X-Gm-Message-State: AOJu0YxHXOEmNK24hee5WBxQyDehzKezX2NwBHsF6QedjJzR+qtN1MaY A4O4h423TPklfD8BchUsfXTp7Q== X-Received: by 2002:a17:902:d488:b0:1cf:c518:fa3a with SMTP id c8-20020a170902d48800b001cfc518fa3amr2470988plg.23.1701063385660; Sun, 26 Nov 2023 21:36:25 -0800 (PST) Received: from basil.darkphysics (c-76-146-178-2.hsd1.wa.comcast.net. [76.146.178.2]) by smtp.gmail.com with ESMTPSA id b6-20020a170902ed0600b001cc3875e658sm7300465pld.303.2023.11.26.21.36.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 21:36:25 -0800 (PST) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH 08/15] Staging: rtl8192e: Rename variable pTsCommonInfo Date: Sun, 26 Nov 2023 21:42:58 -0800 Message-ID: <20231127054305.148276-9-tdavies@darkphysics.net> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231127054305.148276-1-tdavies@darkphysics.net> References: <20231127054305.148276-1-tdavies@darkphysics.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 26 Nov 2023 21:36:57 -0800 (PST) Rename variable pTsCommonInfo to ts_common_info to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- drivers/staging/rtl8192e/rtl819x_BAProc.c | 10 +++++----- drivers/staging/rtl8192e/rtl819x_TSProc.c | 14 +++++++------- drivers/staging/rtl8192e/rtllib.h | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index 78da79ebd775..d11cbe3bbb31 100644 --- a/drivers/staging/rtl8192e/rtl819x_BAProc.c +++ b/drivers/staging/rtl8192e/rtl819x_BAProc.c @@ -485,24 +485,24 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts, } void rtllib_ts_init_del_ba(struct rtllib_device *ieee, - struct ts_common_info *pTsCommonInfo, + struct ts_common_info *ts_common_info, enum tr_select TxRxSelect) { if (TxRxSelect == TX_DIR) { struct tx_ts_record *ts = - (struct tx_ts_record *)pTsCommonInfo; + (struct tx_ts_record *)ts_common_info; if (tx_ts_delete_ba(ieee, ts)) - rtllib_send_DELBA(ieee, pTsCommonInfo->addr, + rtllib_send_DELBA(ieee, ts_common_info->addr, (ts->tx_admitted_ba_record.b_valid) ? (&ts->tx_admitted_ba_record) : (&ts->tx_pending_ba_record), TxRxSelect, DELBA_REASON_END_BA); } else if (TxRxSelect == RX_DIR) { struct rx_ts_record *ts = - (struct rx_ts_record *)pTsCommonInfo; + (struct rx_ts_record *)ts_common_info; if (rx_ts_delete_ba(ieee, ts)) - rtllib_send_DELBA(ieee, pTsCommonInfo->addr, + rtllib_send_DELBA(ieee, ts_common_info->addr, &ts->rx_admitted_ba_record, TxRxSelect, DELBA_REASON_END_BA); } diff --git a/drivers/staging/rtl8192e/rtl819x_TSProc.c b/drivers/staging/rtl8192e/rtl819x_TSProc.c index ed14e8e1ed93..2e6b705437d9 100644 --- a/drivers/staging/rtl8192e/rtl819x_TSProc.c +++ b/drivers/staging/rtl8192e/rtl819x_TSProc.c @@ -91,10 +91,10 @@ static void TsAddBaProcess(struct timer_list *t) netdev_dbg(ieee->dev, "%s(): ADDBA Req is started\n", __func__); } -static void ResetTsCommonInfo(struct ts_common_info *pTsCommonInfo) +static void ResetTsCommonInfo(struct ts_common_info *ts_common_info) { - eth_zero_addr(pTsCommonInfo->addr); - memset(&pTsCommonInfo->tspec, 0, sizeof(struct qos_tsinfo)); + eth_zero_addr(ts_common_info->addr); + memset(&ts_common_info->tspec, 0, sizeof(struct qos_tsinfo)); } static void ResetTxTsEntry(struct tx_ts_record *ts) @@ -211,16 +211,16 @@ static struct ts_common_info *SearchAdmitTRStream(struct rtllib_device *ieee, return NULL; } -static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *addr, +static void MakeTSEntry(struct ts_common_info *ts_common_info, u8 *addr, struct qos_tsinfo *pTSPEC) { - if (!pTsCommonInfo) + if (!ts_common_info) return; - memcpy(pTsCommonInfo->addr, addr, 6); + memcpy(ts_common_info->addr, addr, 6); if (pTSPEC) - memcpy((u8 *)(&(pTsCommonInfo->tspec)), (u8 *)pTSPEC, + memcpy((u8 *)(&(ts_common_info->tspec)), (u8 *)pTSPEC, sizeof(struct qos_tsinfo)); } diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 77ae259eab35..5f372554d424 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1787,7 +1787,7 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb); void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts, u8 policy, u8 overwrite_pending); void rtllib_ts_init_del_ba(struct rtllib_device *ieee, - struct ts_common_info *pTsCommonInfo, + struct ts_common_info *ts_common_info, enum tr_select TxRxSelect); void rtllib_ba_setup_timeout(struct timer_list *t); void rtllib_tx_ba_inact_timeout(struct timer_list *t); -- 2.39.2