staging: vt6655: baseband/rf s_bAL7230Init change __iomem for baseband functions

Replace __iomem with vnt_private providing pointer for dwIoBase

Change BBvPowerSaveModeON and BBvPowerSaveModeOFF to vnt_private and
reference __iomem there, to be removed later.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Malcolm Priestley 2014-11-06 20:02:02 +00:00 committed by Greg Kroah-Hartman
parent a5f0eef38b
commit 78b3c1fde0
3 changed files with 11 additions and 8 deletions

View file

@ -2289,8 +2289,9 @@ BBvSoftwareReset(struct vnt_private *priv)
*
*/
void
BBvPowerSaveModeON(void __iomem *dwIoBase)
BBvPowerSaveModeON(struct vnt_private *priv)
{
void __iomem *dwIoBase = priv->PortOffset;
unsigned char byOrgData;
BBbReadEmbedded(dwIoBase, 0x0D, &byOrgData);
@ -2311,8 +2312,9 @@ BBvPowerSaveModeON(void __iomem *dwIoBase)
*
*/
void
BBvPowerSaveModeOFF(void __iomem *dwIoBase)
BBvPowerSaveModeOFF(struct vnt_private *priv)
{
void __iomem *dwIoBase = priv->PortOffset;
unsigned char byOrgData;
BBbReadEmbedded(dwIoBase, 0x0D, &byOrgData);

View file

@ -86,8 +86,8 @@ void BBvSetVGAGainOffset(struct vnt_private *, unsigned char byData);
/* VT3253 Baseband */
bool BBbVT3253Init(struct vnt_private *);
void BBvSoftwareReset(struct vnt_private *);
void BBvPowerSaveModeON(void __iomem *dwIoBase);
void BBvPowerSaveModeOFF(void __iomem *dwIoBase);
void BBvPowerSaveModeON(struct vnt_private *);
void BBvPowerSaveModeOFF(struct vnt_private *);
void BBvSetTxAntennaMode(struct vnt_private *, unsigned char byAntennaMode);
void BBvSetRxAntennaMode(struct vnt_private *, unsigned char byAntennaMode);
void BBvSetDeepSleep(struct vnt_private *, unsigned char byLocalID);

View file

@ -424,8 +424,9 @@ static const unsigned long dwAL7230ChannelTable2[CB_MAX_CHANNEL] = {
* Return Value: true if succeeded; false if failed.
*
*/
static bool s_bAL7230Init(void __iomem *dwIoBase)
static bool s_bAL7230Init(struct vnt_private *priv)
{
void __iomem *dwIoBase = priv->PortOffset;
int ii;
bool bResult;
@ -436,7 +437,7 @@ static bool s_bAL7230Init(void __iomem *dwIoBase)
MACvWordRegBitsOn(dwIoBase, MAC_REG_SOFTPWRCTL, (SOFTPWRCTL_SWPECTI |
SOFTPWRCTL_TXPEINV));
BBvPowerSaveModeOFF(dwIoBase); //RobertYu:20050106, have DC value for Calibration
BBvPowerSaveModeOFF(priv); /* RobertYu:20050106, have DC value for Calibration */
for (ii = 0; ii < CB_AL7230_INIT_SEQ; ii++)
bResult &= IFRFbWriteEmbedded(dwIoBase, dwAL7230InitTable[ii]);
@ -457,7 +458,7 @@ static bool s_bAL7230Init(void __iomem *dwIoBase)
SOFTPWRCTL_SWPECTI |
SOFTPWRCTL_TXPEINV));
BBvPowerSaveModeON(dwIoBase); // RobertYu:20050106
BBvPowerSaveModeON(priv); /* RobertYu:20050106 */
// PE1: TX_ON, PE2: RX_ON, PE3: PLLON
//3-wire control for power saving mode
@ -759,7 +760,7 @@ bool RFbInit(
break;
case RF_AIROHA7230:
pDevice->byMaxPwrLevel = AL7230_PWR_IDX_LEN;
bResult = s_bAL7230Init(pDevice->PortOffset);
bResult = s_bAL7230Init(pDevice);
break;
case RF_NOTHING:
bResult = true;