mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
staging: vt6656: clean up BBvSetAntennaMode.
white space clean up. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a1ff543514
commit
efe40c09b8
1 changed files with 14 additions and 18 deletions
|
@ -869,25 +869,21 @@ void BBvCalculateParameter(struct vnt_private *priv, u32 frame_length,
|
|||
*/
|
||||
void BBvSetAntennaMode(struct vnt_private *pDevice, u8 byAntennaMode)
|
||||
{
|
||||
switch (byAntennaMode) {
|
||||
case ANT_TXA:
|
||||
case ANT_TXB:
|
||||
break;
|
||||
case ANT_RXA:
|
||||
pDevice->byBBRxConf &= 0xFC;
|
||||
break;
|
||||
case ANT_RXB:
|
||||
pDevice->byBBRxConf &= 0xFE;
|
||||
pDevice->byBBRxConf |= 0x02;
|
||||
break;
|
||||
}
|
||||
switch (byAntennaMode) {
|
||||
case ANT_TXA:
|
||||
case ANT_TXB:
|
||||
break;
|
||||
case ANT_RXA:
|
||||
pDevice->byBBRxConf &= 0xFC;
|
||||
break;
|
||||
case ANT_RXB:
|
||||
pDevice->byBBRxConf &= 0xFE;
|
||||
pDevice->byBBRxConf |= 0x02;
|
||||
break;
|
||||
}
|
||||
|
||||
CONTROLnsRequestOut(pDevice,
|
||||
MESSAGE_TYPE_SET_ANTMD,
|
||||
(u16) byAntennaMode,
|
||||
0,
|
||||
0,
|
||||
NULL);
|
||||
CONTROLnsRequestOut(pDevice, MESSAGE_TYPE_SET_ANTMD,
|
||||
(u16)byAntennaMode, 0, 0, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue