Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp161866lqp; Sun, 9 Jun 2024 22:50:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUc7abnltlat8sbk/yVrW0kspATwEgeHIzd6YWS9n5FQpa0XOWxzoTBvkGmilVN680dCGrxwjl4dl5A7DQRoJ9P8cpuMCfH5y9DmejiTA== X-Google-Smtp-Source: AGHT+IFMQ9l58AYLumi5V6pBUyTQ6dS3yQw5ynMuA5mTot8U22l7GpJhtk/SkT87l+oldjiTw6+Q X-Received: by 2002:a05:6214:2c04:b0:6b0:74b5:cc8 with SMTP id 6a1803df08f44-6b074b510a2mr46797596d6.11.1717998631540; Sun, 09 Jun 2024 22:50:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717998631; cv=pass; d=google.com; s=arc-20160816; b=0xCLgpGUEjRx2m3e6yAIx6ay6jdQJjfcXMdBzJqTHlK6JlM73gowINCb/KEh6wNgDW yZAdMv/PxVFXEUnZ5UEAddAFEZRVda3c6gU+S2lzYc03ajs5vATus0yRmsv/eBfz6t4/ 2y5bcdOfEklAiFmsXbGuzr/shHFL3MIrRjTm0WKKyGza2aDxu+ixaf/W8bkFnQejQcov GXPy0Otq/8u+pCY0rAo+/uKZ+jmgQsPPLXalz5u0QmynSM3kB0aQTD3j+pP9S+DOs8R3 NIdxAIxykaGBpVehQLL6ezvyRxhTNsewtID5mJhUOk8K50h63sdQIL0r8adS4t9ArVp3 RLHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nqxgjv78E9jKa0Z4QIgk8ZdfneN3AnYIge0hwsXYnyk=; fh=/LbnHqUga7im0FLwtJCEMnZBg9TAUu/A72cpKIZP+9s=; b=Nkvfg7uwh7qkYdiIoa/JIdTZ4lkfvBwc9IFnulruY6tF5cgyRp2NyLcDrm2Fkl7gcg t/PrcipoHtdeFjVeL7UGPdcZIs1pEEtdrrHSSI9BJEGdH6FHE+x2bEIoXAcQ/PwExAVo zKjb2z6dQ4/lpJTFzReeb54wshelmgaXthTv4BzaSUn8OaLzv4g7/gJzBDjMXC4+m19v UUc/F2JycMDg51TaVjkDx++VPsoLCBJpNoLVpQVIAL1lNS/s1ZJPuX/XFrb48rhUuy1k fW6LUr9LKwiJRx9UsEyXMWVLBheoRcTzBqac1WZzwySs4/wRAF153kW2Q5s8M/BtBQsi mF4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=B5oP98ch; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-207672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207672-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b0783b7149si26493876d6.367.2024.06.09.22.50.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 22:50:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=B5oP98ch; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-207672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207672-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 365471C21007 for ; Mon, 10 Jun 2024 05:50:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3C9C4D8C7; Mon, 10 Jun 2024 05:49:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="B5oP98ch" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CE893771C for ; Mon, 10 Jun 2024 05:49:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717998546; cv=none; b=e+tK4x1N6N4CThuBC7E3j+jgx62g1TFMg5jVbomf6E5BY0n+u6/SszJcGGWHX/ERnDtdWh+L3hSjUHMmU24e7cd0x6FpuoD2F1e6Om6qcRZYBG9BR/iVc4H+ME74OgvTova0WTEQZvf7qdYRkbN/gOoqBo5HPcJHStYFqxFa1T8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717998546; c=relaxed/simple; bh=LXSQLtGdpztQ5NZQkUH3nDahG9HFPpGPtqGERo1j2tc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=URqibDgJ+EzKxGqgAN/Dgo2YFIbl4mbLkzcuLAVXneJU1vOxkLAXzGXq1FuCPVN4HtgBhvQt0rCs6iPV06V0pEcMrVULxdD+sjnmXiXfrVhlbGsbe3/xVHTGMcK82dLqQVBiss7RruwWcQ2F0jwW56OJVAhSqqmbX1IWBZifNlk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=darkphysics.net; spf=pass smtp.mailfrom=darkphysics.net; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b=B5oP98ch; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=darkphysics.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=darkphysics.net Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1f6fd08e0f2so7827185ad.3 for ; Sun, 09 Jun 2024 22:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1717998544; x=1718603344; 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=nqxgjv78E9jKa0Z4QIgk8ZdfneN3AnYIge0hwsXYnyk=; b=B5oP98chBGVAWn5MEsmN/mLDcGG/FJ7j3EZLYbX0INB/hmtHDxUvNrcxo0tys99YMO f21/WNRrxV7LepVPDHqltMc4im1kIqJBdKqbaUuRn5+TUDO5Wxv+LPHEjGOor991BUym fzSWKeeNp+R53qEfLlcjZezRjwhMvQohnqDFQNR49yElPkdFYwL7Hkyj0AAiRKKBWYSF Ke271oDKh/m8cqubYY7uH5t/vhYhOhSjgaNs+y8MOAzUjFQs1is2DC+4KvzXTvWW7yY2 wiNWRlBtse9OuKqzMb5r9Y0pzF/fSQmnW9BLjGJN3VLYKLU4XAWQVnQ7W12womR8Ctoc fq/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717998544; x=1718603344; 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=nqxgjv78E9jKa0Z4QIgk8ZdfneN3AnYIge0hwsXYnyk=; b=nhLLCYYoQXzfoTtSV2GFMgw6eztIAp+IXG/d8xSgFVOXJi25Fb6EHeABQOr3bFsQW7 F/k/IGiNirdDX+HVFpTdaQ9H4WjC+f3JHohaySE4/ckPRl8Z/P6LUuC9O2+Eb7BE00S9 FNAbsDloKd2Zxfc3iSvFp+UC2PjmrccJoq4GsoCxN9JXZBIbhx52QWbk51M8HfDHjujb BApO7oBkzs4DdtDLdrL264KSKBaaLeGfx9t/A0afC16D51no3oZf3MaO7mcgWAyXPhni z9xIN8RfJGBMO6VHp7FwIEv7nNPyb2sFdOJCPAHLh+g2cB1ypraxB+G/6nlkGfjhxV0c hsKg== X-Forwarded-Encrypted: i=1; AJvYcCXdSs/QVU8smI0Bu6TE6UWE+p1nUns2LRIRpIxck7prjJJBvu7ZtBlEbAVFgAoWPuENTKNRczlJ4Wy1M/Ids4nT+jon10VkeHhEIB4S X-Gm-Message-State: AOJu0Yz3lmOobw9CJ80WtMNz7nmCwuvaxhWfeRjkayKDQ4kS1isHhBNP 3RZ/y262RzxV3xucqr7dvvNTOAl/qHh72jNyw811m9HAEA+dkcfm2qBFy8DokLI= X-Received: by 2002:a17:903:1cf:b0:1f6:6a94:76be with SMTP id d9443c01a7336-1f6d0377644mr107595415ad.46.1717998544631; Sun, 09 Jun 2024 22:49:04 -0700 (PDT) Received: from lunchbox.darkphysics (c-76-146-178-2.hsd1.wa.comcast.net. [76.146.178.2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6f1aced64sm35653725ad.9.2024.06.09.22.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 22:49:04 -0700 (PDT) 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 09/24] Staging: rtl8192e: Rename variable bforced_tx20Mhz Date: Sun, 9 Jun 2024 22:44:34 -0700 Message-Id: <20240610054449.71316-10-tdavies@darkphysics.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240610054449.71316-1-tdavies@darkphysics.net> References: <20240610054449.71316-1-tdavies@darkphysics.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Rename variable bforced_tx20Mhz to forced_tx_20mhz to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 8 ++++---- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index 5392d2daf870..7d5046b58cd1 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -377,7 +377,7 @@ static void _rtl92e_dm_init_bandwidth_autoswitch(struct net_device *dev) priv->rtllib->bandwidth_auto_switch.threshold_20Mhzto40Mhz = BW_AUTO_SWITCH_LOW_HIGH; priv->rtllib->bandwidth_auto_switch.threshold_40Mhzto20Mhz = BW_AUTO_SWITCH_HIGH_LOW; - priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = false; + priv->rtllib->bandwidth_auto_switch.forced_tx_20mhz = false; priv->rtllib->bandwidth_auto_switch.bautoswitch_enable = false; } @@ -388,14 +388,14 @@ static void _rtl92e_dm_bandwidth_autoswitch(struct net_device *dev) if (priv->current_chnl_bw == HT_CHANNEL_WIDTH_20 || !priv->rtllib->bandwidth_auto_switch.bautoswitch_enable) return; - if (!priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz) { + if (!priv->rtllib->bandwidth_auto_switch.forced_tx_20mhz) { if (priv->undecorated_smoothed_pwdb <= priv->rtllib->bandwidth_auto_switch.threshold_40Mhzto20Mhz) - priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = true; + priv->rtllib->bandwidth_auto_switch.forced_tx_20mhz = true; } else { if (priv->undecorated_smoothed_pwdb >= priv->rtllib->bandwidth_auto_switch.threshold_20Mhzto40Mhz) - priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = false; + priv->rtllib->bandwidth_auto_switch.forced_tx_20mhz = false; } } diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index bd18d866ce22..d0da16a86633 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1018,7 +1018,7 @@ struct tx_pending { struct bandwidth_autoswitch { long threshold_20Mhzto40Mhz; long threshold_40Mhzto20Mhz; - bool bforced_tx20Mhz; + bool forced_tx_20mhz; bool bautoswitch_enable; }; diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192e/rtllib_tx.c index d376c35a5ad7..d9749d2c1668 100644 --- a/drivers/staging/rtl8192e/rtllib_tx.c +++ b/drivers/staging/rtl8192e/rtllib_tx.c @@ -362,7 +362,7 @@ static void rtllib_query_BandwidthMode(struct rtllib_device *ieee, if ((tcb_desc->data_rate & 0x80) == 0) return; if (ht_info->cur_bw_40mhz && ht_info->cur_tx_bw40mhz && - !ieee->bandwidth_auto_switch.bforced_tx20Mhz) + !ieee->bandwidth_auto_switch.forced_tx_20mhz) tcb_desc->bPacketBW = true; } -- 2.30.2