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

staging: vt6656: clean up BBvSetAntennaMode.

white space clean up.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a1ff5435
...@@ -869,25 +869,21 @@ void BBvCalculateParameter(struct vnt_private *priv, u32 frame_length, ...@@ -869,25 +869,21 @@ void BBvCalculateParameter(struct vnt_private *priv, u32 frame_length,
*/ */
void BBvSetAntennaMode(struct vnt_private *pDevice, u8 byAntennaMode) void BBvSetAntennaMode(struct vnt_private *pDevice, u8 byAntennaMode)
{ {
switch (byAntennaMode) { switch (byAntennaMode) {
case ANT_TXA: case ANT_TXA:
case ANT_TXB: case ANT_TXB:
break; break;
case ANT_RXA: case ANT_RXA:
pDevice->byBBRxConf &= 0xFC; pDevice->byBBRxConf &= 0xFC;
break; break;
case ANT_RXB: case ANT_RXB:
pDevice->byBBRxConf &= 0xFE; pDevice->byBBRxConf &= 0xFE;
pDevice->byBBRxConf |= 0x02; pDevice->byBBRxConf |= 0x02;
break; break;
} }
CONTROLnsRequestOut(pDevice, CONTROLnsRequestOut(pDevice, MESSAGE_TYPE_SET_ANTMD,
MESSAGE_TYPE_SET_ANTMD, (u16)byAntennaMode, 0, 0, NULL);
(u16) byAntennaMode,
0,
0,
NULL);
} }
/* /*
......
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