Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1413952rdb; Wed, 24 Jan 2024 14:55:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCB03RvfrLc+/1/fpACljSC/rdVNKrO2F/WBD7cMyDHgdYTTwemTRvSr/p0aDye0ExfD7e X-Received: by 2002:a05:6e02:b25:b0:361:9569:974f with SMTP id e5-20020a056e020b2500b003619569974fmr220264ilu.33.1706136926468; Wed, 24 Jan 2024 14:55:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706136926; cv=pass; d=google.com; s=arc-20160816; b=vWBlz5AgaPwBXktkw2VlD3UKmkjLTYZn6SJMLrSYdOK209bdifLCAdf0hbr0IryeOo TTszQyEooHigVTqTxqUAcTv126DVGn4pGRbo8S2uOymwHwcv9lrDwxsZEwAi3BKYbsbQ SvAcY4ISG7VGvl/xykE9T/UvjHjkbhxqVqftAnKH0WWvOaVfX+HjopFvqlsPk3uu2ZKe Wh60hCJzlloj5n4H83nPXYqfvhZ3n6U49QNunETmN1x8Y6f3BsE4mJY277UCI64zIzG4 T+D4aQzH6XAvmxpmeKdwxHlBSTH30o+t3Ez+4eTjFORed75flLoxmYBd0aw6fqYU6xLH a72w== 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=n891Aa14yCHagKfV0zzWF+pMBWwCfZl9aAjaNjmbXMs=; fh=p32Pg0zBdFjDUOpUp1txX3SLnGswM8C/CMMa7TUpsLA=; b=iOOCzRGBoIc/ptc8ipV+owxHEEpmvqauNwi71xbgfQQKqKIztDudgf0JTnZmTEuySt gTzdFvIgNGiznwttkbSvNALSbh08NpT8YbraQR9vwPyfXPtK9bPNv1hjM+rLBEdVaSXB oEGQ8QMw9ss17dKWXfA6txVQUBtviq4ejKXsS2QjcQPTBDHXZUTksznckntNcH+W88Gq UwLGzd5jtynKxbPNjYaZjWNEOAjlJS49vmzIw6z4yHogkA3F1cldq4QVquHFqfaeNGjx VuCmkol2OpzNGSkgStzRoFeBYv3jYYpSKxGp0pUvwZyn3guvrWH8JsQJNkOCE0uAGimK Z2qw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=ROKoc41Z; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-37769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37769-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n1-20020a634d41000000b005cf0ac054d7si12194266pgl.290.2024.01.24.14.55.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 14:55:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=ROKoc41Z; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-37769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37769-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 963DDB25CBA for ; Wed, 24 Jan 2024 22:46:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C2A81386A6; Wed, 24 Jan 2024 22:45:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="ROKoc41Z" Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 24F7D13664F for ; Wed, 24 Jan 2024 22:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706136302; cv=none; b=qzB3VNC1dkp2PEyD7HK0V5SpPDC8IqcB/dMJWs5c7UTne3zUWsWlIbEWqGeXotjkB/cVRKpwBhlEb/DdiohkhX/B1qzpEWDPf9ujQLbjSHDoIv5zju6qmfT2KZgF3TiLVFgU4aNnqAAME38dWO778qP/A23jVGp1Ur7/6MAATBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706136302; c=relaxed/simple; bh=J/YJ1L2U7MOhyvgl74ECxlPzLA74B580IQn9Bn3ngTE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BDC6+qYkCj6XL5nEVfpOFDv9acp85SZvqKaVF1EnV/B1UkeGAZqoK7VByWmAGAmh3yi8SHHXIBjtfQHedxeQKlna4gQROwyOAPMmEtRoyYV/EZmRqygx9KubHJWaK/7tPfttkGJ0N8a0o3B7Hhu7eSiYe1mKdgp+rPOG/7WT3tg= 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=ROKoc41Z; arc=none smtp.client-ip=209.85.214.181 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-f181.google.com with SMTP id d9443c01a7336-1d71cb97937so38780935ad.3 for ; Wed, 24 Jan 2024 14:44:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1706136299; x=1706741099; 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=n891Aa14yCHagKfV0zzWF+pMBWwCfZl9aAjaNjmbXMs=; b=ROKoc41Z/sV9R8kinmtgQEky+aF3Ux0/B9MU2I4TaOJ9xKcUoQ2FFX9UFndu4FOvgX 3HslavBXnqGl+Z/E2zacQ7rzqXayClUPLkb2/74d0fPSTLO/DvED/o6NdTA5Nviepy/z ErSIk2BNn+rzkyPQ6Oj4X8zmmjPREX3u+tJkCNvDkHyAPdWapBfH/qXrNJ6FBb7GDFoR TBxeffGpk1o+b/xFE+I5bmR4b5Je2qEovrBlb2Jrb3vsu6STszOIpEU4PR/xXUEEU08I 3mVHP6Y9eCeFraz8ytvof60jiX6o5/2VzMtnwBSdkrDzHmaYHld9GDbMpk7/zc1t7nhg 6vIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706136299; x=1706741099; 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=n891Aa14yCHagKfV0zzWF+pMBWwCfZl9aAjaNjmbXMs=; b=D0nlrLEf2gL+2ieVovTwJqlOgKD3Ih88OB8PwayAQRLBksbCCCZfCm2Zou129TWhIK E3vw2dRDcN5cfJUoyMFNwSkrGFaOjTnxXBjnCeS19Kp55K1GljhA0e3+CQt61SITvy2E J+fd+hb8J/JeSuLPy6v6sTq2OAJEReRnHMalLWhZ27sKnRicSTfSXV29kONmSIQ6TDCg KG9276Y81kqCR30s7iy9VFL3hpHl+WGyg/626SXKP0A3HU3SAlZXSvRrQbmXTqQ/2EdT CTxIxp6PmJxJ6JFOfU/KNg+U0JzsDfhQzD2uGVhHVlrTXYhvlUejPHMLWdytiSJ14jUy KVTA== X-Gm-Message-State: AOJu0YxMGnanR+O3Kh/fh6SE1zlY1vhZGPDDcQD0+JZTPFDrH8Oxvd7c DYJjZIR5Lm4NyB8H8tH8/0pLzu+8cQek3KSPF0qYw4K5/JmVc3YhiwwV3N5+A3V5xeAGmEKy2/w p X-Received: by 2002:a17:902:d4d0:b0:1d7:8816:a816 with SMTP id o16-20020a170902d4d000b001d78816a816mr94166plg.3.1706136299513; Wed, 24 Jan 2024 14:44:59 -0800 (PST) Received: from oatmeal.darkphysics (c-76-146-178-2.hsd1.wa.comcast.net. [76.146.178.2]) by smtp.gmail.com with ESMTPSA id i5-20020a170902c28500b001d73a2acc0csm6743987pld.283.2024.01.24.14.44.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 14:44:59 -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 04/18] Staging: rtl8192e: Rename variable LPSDelayCnt Date: Wed, 24 Jan 2024 14:44:38 -0800 Message-Id: <20240124224452.968724-5-tdavies@darkphysics.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240124224452.968724-1-tdavies@darkphysics.net> References: <20240124224452.968724-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 LPSDelayCnt to lps_delay_cnt to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 4 ++-- drivers/staging/rtl8192e/rtllib_tx.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 76aacd27e157..f986dbb215e4 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -705,7 +705,7 @@ static void _rtl92e_init_priv_variable(struct net_device *dev) priv->hw_rf_off_action = 0; priv->set_rf_pwr_state_in_progress = false; priv->rtllib->pwr_save_ctrl.bLeisurePs = true; - priv->rtllib->LPSDelayCnt = 0; + priv->rtllib->lps_delay_cnt = 0; priv->rtllib->sta_sleep = LPS_IS_WAKE; priv->rtllib->rf_power_state = rf_on; diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 94f370b40378..0a366874a827 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1375,7 +1375,7 @@ struct rtllib_device { /* for PS mode */ unsigned long last_rx_ps_time; bool awake_pkt_sent; - u8 LPSDelayCnt; + u8 lps_delay_cnt; /* used if IEEE_SOFTMAC_SINGLE_QUEUE is set */ struct sk_buff *mgmt_queue_ring[MGMT_QUEUE_NUM]; diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index 8a60bf3b7079..b5cd030f28c8 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -1351,8 +1351,8 @@ static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time) u8 dtim; struct rt_pwr_save_ctrl *psc = &ieee->pwr_save_ctrl; - if (ieee->LPSDelayCnt) { - ieee->LPSDelayCnt--; + if (ieee->lps_delay_cnt) { + ieee->lps_delay_cnt--; return 0; } diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192e/rtllib_tx.c index b82f3415085b..e61eb6e87ab4 100644 --- a/drivers/staging/rtl8192e/rtllib_tx.c +++ b/drivers/staging/rtl8192e/rtllib_tx.c @@ -595,14 +595,14 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev) ((((u8 *)udp)[1] == 67) && (((u8 *)udp)[3] == 68))) { bdhcp = true; - ieee->LPSDelayCnt = 200; + ieee->lps_delay_cnt = 200; } } } else if (ether_type == ETH_P_ARP) { netdev_info(ieee->dev, "=================>DHCP Protocol start tx ARP pkt!!\n"); bdhcp = true; - ieee->LPSDelayCnt = + ieee->lps_delay_cnt = ieee->current_network.tim.tim_count; } } -- 2.39.2