Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1410688rdb; Wed, 24 Jan 2024 14:45:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMq7ME7EP9QuTtoJX3eVoANjTzTCjihHz6mwUbhd/W/d0oTNyf2cEy38TiH3sOmgh6enK3 X-Received: by 2002:a17:907:7f94:b0:a28:d1f9:976 with SMTP id qk20-20020a1709077f9400b00a28d1f90976mr11086ejc.65.1706136332990; Wed, 24 Jan 2024 14:45:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706136332; cv=pass; d=google.com; s=arc-20160816; b=nH2FipS8duSvbM1668HxeM1Yn4FL75XwUwyzJUmmr1ldxsWXTKjMI/+WN5O1bl8Lxc +V3cC3pOXSe2YsZXAD6BbgAcdp8Jz9j7lniAOMjQzgoo7ZSMXHRoJDwm4FxAKNCculf2 Qdhg1cEA5f2uBIXfQKKT7m3HvyeYfCvrGWYYuko2/BRqSOfgG6KiXvtrQsF2l6si6q7A nt8sBTPKVk7YEBvlia/kYg0LrIAbc5nxzlF+rgme6LVORFIs63zf1aL7+e+BXJSVP1m5 SfGqiQwTt6rnIgiXprfiYSttO6V0gOSLr8pAFv7M5gAxw6+cM5tLbHKiGsf7w2uOxy+M NTXg== 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=PqmpICGnSbhZYBTw1NATugWFKeRYRTOpi7VeoU0Msb4=; fh=p32Pg0zBdFjDUOpUp1txX3SLnGswM8C/CMMa7TUpsLA=; b=gcTMZPS9Le+k2jzzoWn7ckVijaFa6zV8f4ANj3SAhP1wLDpG1MFOIRSDx5wshnGxjN ekHfutu5UCvyeMlHkllQwJ06qEOFM+VmpOlpofFbIZcsELOJ11neiot2iZyUPHTEl95q HEaj9o59w/SFi9Ffo7t3Ms/WnvUDnfRBvcIY7LZ/9IZ7Ru0xJBJ6KEOZ5Qp7XLyUBiZu 47A74A2KjLiUCJdJJ0jscR6j6NqigqrqDpL4RXppXx0OzMofCi4Q9qGo5NAVNINEBVkc DWi1QouOHlMy5DFRPmksxNfEK/ts07ILKE1CFL8a2vkh5+Mm5BkHGXMFQx1435JfST89 4EaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=YeImZ4xP; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-37768-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37768-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r11-20020a1709067fcb00b00a2fe5dfa886si289499ejs.667.2024.01.24.14.45.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 14:45:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37768-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=YeImZ4xP; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-37768-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37768-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BB5D21F262B0 for ; Wed, 24 Jan 2024 22:45:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 929BA137C28; Wed, 24 Jan 2024 22:45:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="YeImZ4xP" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 61F98135A7F for ; Wed, 24 Jan 2024 22:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706136300; cv=none; b=Tgx+zvON4sQBIfVtIxOtEJiKYbllma9Vnbt5brsYKFSsDP3YYp8Q/uylwT7XkTqbPybMdy6nFcIgZp7v472MI4P/2np7qjR294SNeHgVORR6njfS4CbSCG9GQ8fPxtLFQHuVRVwl6ZDklauPB9nKjAWY1dFI7JlOPxE/7g9uFL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706136300; c=relaxed/simple; bh=yjaeTV0WtXXorMCtYS00rvQnBP5KP664fSy4NR08CsE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=J81zFkr3W6QhuPJsk7237hYlUDWC3GsoEv1Ao6p+B5VQ/gkMR0NfokZjtH3hcu7h8IX/s5mKGwQ28/I3J7ISUve+0XFvC//6tfS6uaup7MbfjnRW7O6ujjkLJ8uyc5eisB5tnskxlmUjx1n2ri8LDPOVEtudBKCQBKs2sZP/Y8Q= 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=YeImZ4xP; arc=none smtp.client-ip=209.85.214.178 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-f178.google.com with SMTP id d9443c01a7336-1d751bc0c15so35019255ad.2 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=PqmpICGnSbhZYBTw1NATugWFKeRYRTOpi7VeoU0Msb4=; b=YeImZ4xPdwX+2dc5nyZPJjHx+IL4K5LW8r1QfEyrzAHppqkhYs3d9VtQ2fEpo3QiZk P5pl6xA8Lqwz4+eoN3v3Aa5I73lWCV4MKaT3x+iLFCfmbZ1a35dqZijQ6LcJ3a7fNGB+ 9nCOXOA+f004ztoZXSb5/q44QFwyUGZGEptMTu6NHawzAOZciOxY6b8CxG/z2fSpWoJD +SA4G6u7UbRsltFpIM9Nmcd2dQgOSo61VRpwuMrJ8bz0i6KYglpNLam3qYKyPtbvNA+R wgDDY0nOEKHRnFgmPSH16GjYKImt8XwSoGpGJ0dzjAAyEC5CB3Vj/OraJV+s24virf7V r2qw== 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=PqmpICGnSbhZYBTw1NATugWFKeRYRTOpi7VeoU0Msb4=; b=dys5KlT0GkXUud9CzeBBdgOWEooyEymBdiee0a38ICz2IMvFey4F4McmeIBsXtrBD5 Cps2uATKqgiwHiqCrKk+V5Yazw46zfkxrLvI+DVW1W59edhnP9fFa4dksVoSkDBGLY7y JgNbREi0QKbQNF+ZUEHGtwbOCFeSDRgDLAg6Iw/rtSdYK/M+KF6mRHlrXkDI7C3aglfh ksJ9YeUUKqM1oR8VdxSNjMvmabJinn9l97OgoWI8VAJP4zhb56aowa/MYQGkFGZdrBuR ZKfRiut8E4j1Pf/juQkvD42EYFX18HasNrcyklM8smG+F48se55Teco//5D2Q2tnr7Gb TmSg== X-Gm-Message-State: AOJu0YwS0JQsyhChPgC6TzkN4REKCBqk4gwyAuKiJx91PGnuuRM6rMKW ugXTW0C3G5/5nu8cCBLm6tUBtaDj0lPVPogKYPRIOTl/VM0hgmrsuWj1ZEoRwvQ= X-Received: by 2002:a17:902:e5c3:b0:1d6:f240:87df with SMTP id u3-20020a170902e5c300b001d6f24087dfmr114928plf.4.1706136298789; Wed, 24 Jan 2024 14:44:58 -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:58 -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 03/18] Staging: rtl8192e: Rename variable LPSAwakeIntvl_tmp Date: Wed, 24 Jan 2024 14:44:37 -0800 Message-Id: <20240124224452.968724-4-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 LPSAwakeIntvl_tmp to lps_awake_intvl_tmp to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- drivers/staging/rtl8192e/rtllib_softmac.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index cf855ba39c10..8a60bf3b7079 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -1390,33 +1390,33 @@ static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time) (psc->LPSAwakeIntvl + 1); } { - u8 LPSAwakeIntvl_tmp = 0; + u8 lps_awake_intvl_tmp = 0; u8 period = ieee->current_network.dtim_period; u8 count = ieee->current_network.tim.tim_count; if (count == 0) { if (psc->LPSAwakeIntvl > period) - LPSAwakeIntvl_tmp = period + + lps_awake_intvl_tmp = period + (psc->LPSAwakeIntvl - period) - ((psc->LPSAwakeIntvl - period) % period); else - LPSAwakeIntvl_tmp = psc->LPSAwakeIntvl; + lps_awake_intvl_tmp = psc->LPSAwakeIntvl; } else { if (psc->LPSAwakeIntvl > ieee->current_network.tim.tim_count) - LPSAwakeIntvl_tmp = count + + lps_awake_intvl_tmp = count + (psc->LPSAwakeIntvl - count) - ((psc->LPSAwakeIntvl - count) % period); else - LPSAwakeIntvl_tmp = psc->LPSAwakeIntvl; + lps_awake_intvl_tmp = psc->LPSAwakeIntvl; } *time = ieee->current_network.last_dtim_sta_time + msecs_to_jiffies(ieee->current_network.beacon_interval * - LPSAwakeIntvl_tmp); + lps_awake_intvl_tmp); } } -- 2.39.2