From nobody Fri Nov 29 17:47:58 2024 Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch [185.70.40.133]) (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 DF2861CB30A for ; Wed, 18 Sep 2024 19:21:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687285; cv=none; b=kcdLN0dK/7bVL0/LbORN947jj+vk5ltcn1PHHuhPCSbplzHzfbJuzaLcHDDZVU7kDWNcC0F4P/SlfoQRPC3vGChYaQcRpzfSns0Be/xZ5pxk4IpvVT93TpMDhLA7wfWeEMH3X9VgW8rWHFxarL8RhwUTm/Y28UhHLl+xuaT8dt8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687285; c=relaxed/simple; bh=JECJLvnhio78zZxE3FL4gNGIfj9yWbrkXe9N/pkvkAU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rXwnXE12j0+8x/6PU57k0PpNp0NyD0PxzQtrhUJYJQYaOsDfWQS+xUypgE8i6dhcBAXDHLwRqaCWhoCO/WAQViDTqd03gCRBhV8u/LvTDYyhagntNiqQdFpf4sFeow5Bb9WxgzeVgDRqKfk4kP4rv5jLkN4+Ggxb0ngVVnH51+s= 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=KhKBdJTl; arc=none smtp.client-ip=185.70.40.133 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="KhKBdJTl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687280; x=1726946480; bh=n+iho082T7gTlh0cvK2vzkCqMr12X2d6EyFsyy1wuzo=; 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=KhKBdJTloYNb/v9VXyPvU8MFGLIm7QWXuYZeCxNdZ3Pu71AoUvPe0/wJoIV1TUmYF w3E0ScujO8qMWMJfOMEdV2JmaFcS2vO7kGSUp0xQ9xx/frw302a8p0GKwWqRiPWGvf kQBFWTC455J2F1XVPFvhFYIX0kDRATJP1q8InTb3uBu4QsDZV4Lo+oexO53ohQug4+ YpK3yVLwHkqP4/+NDe71kRdZHu3/6oSx9+cWULTViZrjA6ftwBDi1HDaPL0sVnrEkR 47wCCopq3o88pDWsSo84Pujt/a29pLiy8JrNpJ6YVTCX/ZaQ341K2RnAfnVzaVGZBp zyErRq4/Nz5+g== Date: Wed, 18 Sep 2024 19:21:15 +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 06/14] staging: vt6655: s_uGetDataDuration: Rename bNeedAck parameter Message-ID: <20240918191959.51539-7-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: 10ac2baaf174f0bd80ce457defa0a67e2c071d2a 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 bNeedAck to need_ack in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 7dd57d2e2831..72837898ea29 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -234,7 +234,7 @@ s_uGetDataDuration( unsigned int frame_length, unsigned char pkt_type, unsigned short rate, - bool bNeedAck, + bool need_ack, unsigned int uFragIdx, unsigned int cbLastFragmentSize, unsigned int uMACfragNum, @@ -254,51 +254,51 @@ s_uGetDataDuration( =20 switch (dur_type) { case DATADUR_B: /* DATADUR_B */ - if (bNeedAck) { + if (need_ack) { uAckTime =3D bb_get_frame_time(priv->preamble_type, pkt_type, 14, priv->byTopCCKBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { - if (!bNeedAck) + if (!need_ack) return 0; } else { /* First Frag or Mid Frag */ uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, rate, bNeedAck); + len, rate, need_ack); } =20 return priv->uSIFS + uAckTime + uNextPktTime; =20 case DATADUR_A: /* DATADUR_A */ - if (bNeedAck) { + if (need_ack) { uAckTime =3D bb_get_frame_time(priv->preamble_type, pkt_type, 14, priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { - if (!bNeedAck) + if (!need_ack) return 0; } else { /* First Frag or Mid Frag */ uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, rate, bNeedAck); + len, rate, need_ack); } =20 return priv->uSIFS + uAckTime + uNextPktTime; =20 case DATADUR_A_F0: /* DATADUR_A_F0 */ case DATADUR_A_F1: /* DATADUR_A_F1 */ - if (bNeedAck) { + if (need_ack) { uAckTime =3D bb_get_frame_time(priv->preamble_type, pkt_type, 14, priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { - if (!bNeedAck) + if (!need_ack) return 0; } else { /* First Frag or Mid Frag */ @@ -315,7 +315,7 @@ s_uGetDataDuration( rate =3D fb_opt1[FB_RATE0][rate]; =20 uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, rate, bNeedAck); + len, rate, need_ack); } =20 return priv->uSIFS + uAckTime + uNextPktTime; --=20 2.34.1