From nobody Fri Nov 29 16:43:09 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 EE7C61C9DE5 for ; Wed, 18 Sep 2024 19:20:57 +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=1726687259; cv=none; b=nEvKn2FVPahHDYl24xccLL738aku8ZBPe1S/WMrWNgRr+WDndrknrAb5ulfJOwQzWu0ETLq9A/u68+X9H2JF1MnRKROyKybT5GZUQR/bYaOcAH9+g+u5o7dy5XX04t3XiisSl3E2pWUNtn1qEzfrUQdY9iw5LodnUZZwKm6yHEg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687259; c=relaxed/simple; bh=x9hFAta328ClIMgZNZA+WHiW6X/BprooQPYwdps2wmg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CH0VPVSotVPxICmR1x4zhIm67QjvNfz0hLO/AVmuG6EbJsBio3+8Capb6bq8J2LT8lBHd63qCNCjcy32QoEFarK5yrw40DojWedbpaAHb9FjZlGU4oTBIi04ortZpL8/UpEuJ9zeCudZTqBt1WKBQpA6LGV8mPm60bENLu7LXVI= 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=gEmqGf07; 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="gEmqGf07" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687256; x=1726946456; bh=KhZoZPKYCTCWJgjjSf9Lt9HbrP4/i0KAqvC1Qwk1GE0=; 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=gEmqGf07haB/bi5BmfFcAc7W34epY7i+/3+tOZZrMEwAdjaiJDXt/d0NmRHjzpxcY 3HJzvk3v4GwWtw9+3oEKVIyM8/u/dpoRsoJ7nOMM8L6g6emQLG2xxjNpiCjpqy5mN7 jIqhdWbrkGIBG0GSEiemeWBDvhZlzqCS01ty5pBUUpbjNc4bHkizEiv0cIPoWESTzZ nqEYcRAk6BolGtOrtcgGgQlXiX0SrvNFSOpYeIXqk40gi4JExd5waWGeivn7WceeU3 X109YT0wq6tqP9+m3zXf6DR/xOWSZ0oRZYXjv31Z3LcPog8+xuqzWnBE1s7z+LP4yD 9sh7AOa8dompg== Date: Wed, 18 Sep 2024 19:20:51 +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 01/14] staging: vt6655: s_uGetDataDuration: Rename pDevice parameter Message-ID: <20240918191959.51539-2-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: b1c6673bbcf88c07ea482bdb7a4474d3e7684ee3 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 pDevice to priv in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 3705cb1e87b6..a1dadc3e8cb5 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -229,7 +229,7 @@ static __le16 get_rtscts_time(struct vnt_private *priv, static unsigned int s_uGetDataDuration( - struct vnt_private *pDevice, + struct vnt_private *priv, unsigned char byDurType, unsigned int cbFrameLength, unsigned char byPktType, @@ -255,9 +255,9 @@ s_uGetDataDuration( switch (byDurType) { case DATADUR_B: /* DATADUR_B */ if (bNeedAck) { - uAckTime =3D bb_get_frame_time(pDevice->preamble_type, + uAckTime =3D bb_get_frame_time(priv->preamble_type, byPktType, 14, - pDevice->byTopCCKBasicRate); + priv->byTopCCKBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { @@ -265,17 +265,17 @@ s_uGetDataDuration( return 0; } else { /* First Frag or Mid Frag */ - uNextPktTime =3D s_uGetTxRsvTime(pDevice, byPktType, + uNextPktTime =3D s_uGetTxRsvTime(priv, byPktType, len, wRate, bNeedAck); } =20 - return pDevice->uSIFS + uAckTime + uNextPktTime; + return priv->uSIFS + uAckTime + uNextPktTime; =20 case DATADUR_A: /* DATADUR_A */ if (bNeedAck) { - uAckTime =3D bb_get_frame_time(pDevice->preamble_type, + uAckTime =3D bb_get_frame_time(priv->preamble_type, byPktType, 14, - pDevice->byTopOFDMBasicRate); + priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { @@ -283,18 +283,18 @@ s_uGetDataDuration( return 0; } else { /* First Frag or Mid Frag */ - uNextPktTime =3D s_uGetTxRsvTime(pDevice, byPktType, + uNextPktTime =3D s_uGetTxRsvTime(priv, byPktType, len, wRate, bNeedAck); } =20 - return pDevice->uSIFS + uAckTime + uNextPktTime; + return priv->uSIFS + uAckTime + uNextPktTime; =20 case DATADUR_A_F0: /* DATADUR_A_F0 */ case DATADUR_A_F1: /* DATADUR_A_F1 */ if (bNeedAck) { - uAckTime =3D bb_get_frame_time(pDevice->preamble_type, + uAckTime =3D bb_get_frame_time(priv->preamble_type, byPktType, 14, - pDevice->byTopOFDMBasicRate); + priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { @@ -314,11 +314,11 @@ s_uGetDataDuration( else wRate =3D fb_opt1[FB_RATE0][wRate]; =20 - uNextPktTime =3D s_uGetTxRsvTime(pDevice, byPktType, + uNextPktTime =3D s_uGetTxRsvTime(priv, byPktType, len, wRate, bNeedAck); } =20 - return pDevice->uSIFS + uAckTime + uNextPktTime; + return priv->uSIFS + uAckTime + uNextPktTime; =20 default: break; --=20 2.34.1