From nobody Fri Nov 29 17:34:34 2024 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2D061CB50B for ; Wed, 18 Sep 2024 19:21:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687279; cv=none; b=Wu4o6UBwWqL1nlGcssThduNSdH62T62aHVylNCEz9SRaDnlSeaFdO4EYJ60oQPA7IaIGFfJfjkGzgmvD5UiAG78mQCZovkjCpyGrC5gV886U924q2SFqPDLRDMgDl3ZQGl1sGzF7GiivrdnDK1Wz6/IYiMCUkk9Ivn0CQPAyYEw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687279; c=relaxed/simple; bh=iBUdUcuyFy3PwDpZpP+AQIisDPez0XyKVtQTnXifhZY=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b14mXQ1ing1J7Af2bJEhh3mN2xTCdmu5/zvMME+md7v+qjnm4IYtDCHAW6fpgcMpgz/hGxPDr3HfIiJT0tIQwi0/kDaOwNwDN6JSmHVmWMN9VtnSfXC9nkwl9HS0+I25QvjRmDr9r+jfWwudZE7t5L2HhjqBtyQc7MGpVZ+vJ8M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=YAIlwGjf; arc=none smtp.client-ip=185.70.43.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="YAIlwGjf" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687275; x=1726946475; bh=k+UTPxJmdwp6BXX9W14I0NBgGNiPwpjEDV7rUDT0Cns=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=YAIlwGjfmPXMERKB7XC+FrLjBwMgUqDpQk5aCgUGrLTmPwQxyXEK4jSRn9bBAGBNi pXCO95Ml6VzsgHZ8dIHEAw8IyE64SBqoGqlJ8eneRg8Ib1mGzY5AcWH1CS8/wT05fz hRVA7/xyOQAUR0YOdIyGm/6qwpekkH6k90G6Kxfnht+gzUHcl7jmLBXUytN3FgXwgz XEpBtihmEQpx3uzBSbp0nVS22z2dusLa1RSwwAmoE31qKHMqfrlRtvasm3CLL6SX62 o6X3yBV+yEmlkdVtUBmjhQmRf6Sl3/7IFbRHwqizG6+ib/0p/nsZ1I+JqFFJpZg79C JJLB8ivSlxVoQ== Date: Wed, 18 Sep 2024 19:21:11 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 05/14] staging: vt6655: s_uGetDataDuration: Rename wRate parameter Message-ID: <20240918191959.51539-6-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: 2684ebcb0ad610bf925f3f794fd161098a326aa8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames wRate to rate in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index dd228962dd77..7dd57d2e2831 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -233,7 +233,7 @@ s_uGetDataDuration( unsigned char dur_type, unsigned int frame_length, unsigned char pkt_type, - unsigned short wRate, + unsigned short rate, bool bNeedAck, unsigned int uFragIdx, unsigned int cbLastFragmentSize, @@ -266,7 +266,7 @@ s_uGetDataDuration( } else { /* First Frag or Mid Frag */ uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, wRate, bNeedAck); + len, rate, bNeedAck); } =20 return priv->uSIFS + uAckTime + uNextPktTime; @@ -284,7 +284,7 @@ s_uGetDataDuration( } else { /* First Frag or Mid Frag */ uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, wRate, bNeedAck); + len, rate, bNeedAck); } =20 return priv->uSIFS + uAckTime + uNextPktTime; @@ -302,20 +302,20 @@ s_uGetDataDuration( return 0; } else { /* First Frag or Mid Frag */ - if (wRate < RATE_18M) - wRate =3D RATE_18M; - else if (wRate > RATE_54M) - wRate =3D RATE_54M; + if (rate < RATE_18M) + rate =3D RATE_18M; + else if (rate > RATE_54M) + rate =3D RATE_54M; =20 - wRate -=3D RATE_18M; + rate -=3D RATE_18M; =20 if (byFBOption =3D=3D AUTO_FB_0) - wRate =3D fb_opt0[FB_RATE0][wRate]; + rate =3D fb_opt0[FB_RATE0][rate]; else - wRate =3D fb_opt1[FB_RATE0][wRate]; + rate =3D fb_opt1[FB_RATE0][rate]; =20 uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, wRate, bNeedAck); + len, rate, bNeedAck); } =20 return priv->uSIFS + uAckTime + uNextPktTime; --=20 2.34.1