From 6db0deaec99f6319cc678e7e964a599dc94e5a65 Mon Sep 17 00:00:00 2001 From: Malcolm Priestley Date: Fri, 23 May 2014 18:00:19 +0100 Subject: [PATCH] staging: vt6656: camel case cleanup CARDbAddBasicRate camel case changes pDevice -> priv wRateIdx -> rate_idx Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vt6656/card.c | 9 ++++----- drivers/staging/vt6656/card.h | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vt6656/card.c b/drivers/staging/vt6656/card.c index c52b9839f7e4..439e536fbeee 100644 --- a/drivers/staging/vt6656/card.c +++ b/drivers/staging/vt6656/card.c @@ -513,14 +513,13 @@ void CARDvUpdateBasicTopRate(struct vnt_private *priv) * Return Value: true if succeeded; false if failed. * */ -void CARDbAddBasicRate(struct vnt_private *pDevice, u16 wRateIdx) +void CARDbAddBasicRate(struct vnt_private *priv, u16 rate_idx) { - u16 wRate = (1 << wRateIdx); - pDevice->wBasicRate |= wRate; + priv->wBasicRate |= (1 << rate_idx); - //Determines the highest basic rate. - CARDvUpdateBasicTopRate(pDevice); + /*Determines the highest basic rate.*/ + CARDvUpdateBasicTopRate(priv); } int CARDbIsOFDMinBasicRate(struct vnt_private *pDevice) diff --git a/drivers/staging/vt6656/card.h b/drivers/staging/vt6656/card.h index 78bd96fb9a31..ac734714c7d1 100644 --- a/drivers/staging/vt6656/card.h +++ b/drivers/staging/vt6656/card.h @@ -49,7 +49,7 @@ void CARDbSetMediaChannel(struct vnt_private *pDevice, u32 uConnectionChannel); void CARDvSetRSPINF(struct vnt_private *, u8); void vUpdateIFS(struct vnt_private *); void CARDvUpdateBasicTopRate(struct vnt_private *); -void CARDbAddBasicRate(struct vnt_private *pDevice, u16 wRateIdx); +void CARDbAddBasicRate(struct vnt_private *, u16); int CARDbIsOFDMinBasicRate(struct vnt_private *pDevice); void CARDvAdjustTSF(struct vnt_private *pDevice, u8 byRxRate, u64 qwBSSTimestamp, u64 qwLocalTSF); -- 2.30.2