Skip to content

Commit

Permalink
Staging: vt6655: Renamed uRATE to rate
Browse files Browse the repository at this point in the history
Renamed uRATE to rate to avoid camelcase

Signed-off-by: Paul McQuade <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
paulmcquad authored and gregkh committed Oct 13, 2015
1 parent 749f3c0 commit c1aa41d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions drivers/staging/vt6655/rf.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
*/
bool RFbSetPower(
struct vnt_private *priv,
unsigned int uRATE,
unsigned int rate,
u16 uCH
)
{
Expand All @@ -782,7 +782,7 @@ bool RFbSetPower(
if ((uCH < 1) || (uCH > CB_MAX_CHANNEL))
return false;

switch (uRATE) {
switch (rate) {
case RATE_1M:
case RATE_2M:
case RATE_5M:
Expand Down Expand Up @@ -818,7 +818,7 @@ bool RFbSetPower(
if (priv->byCurPwr == byPwr)
return true;

bResult = RFbRawSetPower(priv, byPwr, uRATE);
bResult = RFbRawSetPower(priv, byPwr, rate);
if (bResult)
priv->byCurPwr = byPwr;

Expand All @@ -842,7 +842,7 @@ bool RFbSetPower(
bool RFbRawSetPower(
struct vnt_private *priv,
unsigned char byPwr,
unsigned int uRATE
unsigned int rate
)
{
bool bResult = true;
Expand All @@ -854,7 +854,7 @@ bool RFbRawSetPower(
switch (priv->byRFType) {
case RF_AIROHA:
bResult &= IFRFbWriteEmbedded(priv, dwAL2230PowerTable[byPwr]);
if (uRATE <= RATE_11M)
if (rate <= RATE_11M)
bResult &= IFRFbWriteEmbedded(priv, 0x0001B400+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW);
else
bResult &= IFRFbWriteEmbedded(priv, 0x0005A400+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW);
Expand All @@ -863,7 +863,7 @@ bool RFbRawSetPower(

case RF_AL2230S:
bResult &= IFRFbWriteEmbedded(priv, dwAL2230PowerTable[byPwr]);
if (uRATE <= RATE_11M) {
if (rate <= RATE_11M) {
bResult &= IFRFbWriteEmbedded(priv, 0x040C1400+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW);
bResult &= IFRFbWriteEmbedded(priv, 0x00299B00+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW);
} else {
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/vt6655/rf.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ bool RFbInit(
struct vnt_private *
);
bool RFvWriteWakeProgSyn(struct vnt_private *, unsigned char byRFType, u16);
bool RFbSetPower(struct vnt_private *, unsigned int uRATE, u16);
bool RFbSetPower(struct vnt_private *, unsigned int rate, u16);
bool RFbRawSetPower(
struct vnt_private *,
unsigned char byPwr,
unsigned int uRATE
unsigned int rate
);

void
Expand Down

0 comments on commit c1aa41d

Please sign in to comment.