Commit ecb6ecbb authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: rf.c: RFvRSSITodBm Remove camel case and clean up.

White space clean up.

Camel case changes;
pDevice -> priv
byCurrRSSI -> rssi
pldBm -> dbm
byIdx -> idx
abyAIROHARF -> airoharf

No functional changes.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fc20463e
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
* Revision History: * Revision History:
* RF_VT3226: RobertYu:20051111, VT3226C0 and before * RF_VT3226: RobertYu:20051111, VT3226C0 and before
* RF_VT3226D0: RobertYu:20051228 * RF_VT3226D0: RobertYu:20051228
* RF_VT3342A0: RobertYu:20060609
* *
*/ */
...@@ -942,27 +943,27 @@ int RFbRawSetPower(struct vnt_private *priv, u8 power, u32 rate) ...@@ -942,27 +943,27 @@ int RFbRawSetPower(struct vnt_private *priv, u8 power, u32 rate)
* Return Value: none * Return Value: none
* *
-*/ -*/
void RFvRSSITodBm(struct vnt_private *pDevice, u8 byCurrRSSI, long *pldBm) void RFvRSSITodBm(struct vnt_private *priv, u8 rssi, long *dbm)
{ {
u8 byIdx = (((byCurrRSSI & 0xC0) >> 6) & 0x03); u8 idx = (((rssi & 0xc0) >> 6) & 0x03);
signed long b = (byCurrRSSI & 0x3F); long b = (rssi & 0x3f);
signed long a = 0; long a = 0;
u8 abyAIROHARF[4] = {0, 18, 0, 40}; u8 airoharf[4] = {0, 18, 0, 40};
switch (pDevice->byRFType) { switch (priv->byRFType) {
case RF_AL2230: case RF_AL2230:
case RF_AL2230S: case RF_AL2230S:
case RF_AIROHA7230: case RF_AIROHA7230:
case RF_VT3226: //RobertYu:20051111 case RF_VT3226:
case RF_VT3226D0: case RF_VT3226D0:
case RF_VT3342A0: //RobertYu:20060609 case RF_VT3342A0:
a = abyAIROHARF[byIdx]; a = airoharf[idx];
break; break;
default: default:
break; break;
} }
*pldBm = -1 * (a + b * 2); *dbm = -1 * (a + b * 2);
} }
void RFbRFTableDownload(struct vnt_private *pDevice) void RFbRFTableDownload(struct vnt_private *pDevice)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment