From: Malcolm Priestley Date: Sat, 19 Jul 2014 11:30:16 +0000 (+0100) Subject: staging: vt6656: struct vnt_private remove camel case antenna variables X-Git-Tag: v4.9.8~5976^2~428 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2044dbdb0b337ab7ddc36c45fc792b76913b57e8;p=platform%2Fkernel%2Flinux-rpi3.git staging: vt6656: struct vnt_private remove camel case antenna variables Camel case changes bTxRxAntInv -> tx_rx_ant_inv dwRxAntennaSel -> rx_antenna_sel byRxAntennaMode -> rx_antenna_mode byTxAntennaMode -> tx_antenna_mode byRadioCtl -> radio_ctl Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index ecf8da0..c4e83b5 100644 --- a/drivers/staging/vt6656/device.h +++ b/drivers/staging/vt6656/device.h @@ -317,11 +317,11 @@ struct vnt_private { u32 current_rssi; /* Antenna Diversity */ - int bTxRxAntInv; - u32 dwRxAntennaSel; - u8 byRxAntennaMode; - u8 byTxAntennaMode; - u8 byRadioCtl; + int tx_rx_ant_inv; + u32 rx_antenna_sel; + u8 rx_antenna_mode; + u8 tx_antenna_mode; + u8 radio_ctl; /* IFS & Cw */ u32 uSIFS; /* Current SIFS */ diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 4ca6639..1137a19 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -239,9 +239,9 @@ static int device_init_registers(struct vnt_private *priv) antenna = priv->abyEEPROM[EEP_OFS_ANTENNA]; if (antenna & EEP_ANTINV) - priv->bTxRxAntInv = true; + priv->tx_rx_ant_inv = true; else - priv->bTxRxAntInv = false; + priv->tx_rx_ant_inv = false; antenna &= (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN); @@ -249,35 +249,35 @@ static int device_init_registers(struct vnt_private *priv) antenna = (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN); if (antenna == (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN)) { - priv->byTxAntennaMode = ANT_B; - priv->dwRxAntennaSel = 1; + priv->tx_antenna_mode = ANT_B; + priv->rx_antenna_sel = 1; - if (priv->bTxRxAntInv == true) - priv->byRxAntennaMode = ANT_A; + if (priv->tx_rx_ant_inv == true) + priv->rx_antenna_mode = ANT_A; else - priv->byRxAntennaMode = ANT_B; + priv->rx_antenna_mode = ANT_B; } else { - priv->dwRxAntennaSel = 0; + priv->rx_antenna_sel = 0; if (antenna & EEP_ANTENNA_AUX) { - priv->byTxAntennaMode = ANT_A; + priv->tx_antenna_mode = ANT_A; - if (priv->bTxRxAntInv == true) - priv->byRxAntennaMode = ANT_B; + if (priv->tx_rx_ant_inv == true) + priv->rx_antenna_mode = ANT_B; else - priv->byRxAntennaMode = ANT_A; + priv->rx_antenna_mode = ANT_A; } else { - priv->byTxAntennaMode = ANT_B; + priv->tx_antenna_mode = ANT_B; - if (priv->bTxRxAntInv == true) - priv->byRxAntennaMode = ANT_A; + if (priv->tx_rx_ant_inv == true) + priv->rx_antenna_mode = ANT_A; else - priv->byRxAntennaMode = ANT_B; + priv->rx_antenna_mode = ANT_B; } } /* Set initial antenna mode */ - vnt_set_antenna_mode(priv, priv->byRxAntennaMode); + vnt_set_antenna_mode(priv, priv->rx_antenna_mode); /* get Auto Fall Back type */ priv->byAutoFBCtrl = AUTO_FB_0; @@ -348,9 +348,9 @@ static int device_init_registers(struct vnt_private *priv) vnt_set_short_slot_time(priv); - priv->byRadioCtl = priv->abyEEPROM[EEP_OFS_RADIOCTL]; + priv->radio_ctl = priv->abyEEPROM[EEP_OFS_RADIOCTL]; - if ((priv->byRadioCtl & EEP_RADIOCTL_ENABLE) != 0) { + if ((priv->radio_ctl & EEP_RADIOCTL_ENABLE) != 0) { status = vnt_control_in(priv, MESSAGE_TYPE_READ, MAC_REG_GPIOCTL1, MESSAGE_REQUEST_MACREG, 1, &tmp); diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c index c56b7b3..304f6d6 100644 --- a/drivers/staging/vt6656/wcmd.c +++ b/drivers/staging/vt6656/wcmd.c @@ -146,17 +146,17 @@ void vnt_run_command(struct work_struct *work) case WLAN_CMD_CHANGE_ANTENNA_START: dev_dbg(&priv->usb->dev, "Change from Antenna%d to", - priv->dwRxAntennaSel); + priv->rx_antenna_sel); - if (priv->dwRxAntennaSel == 0) { - priv->dwRxAntennaSel = 1; - if (priv->bTxRxAntInv == true) + if (priv->rx_antenna_sel == 0) { + priv->rx_antenna_sel = 1; + if (priv->tx_rx_ant_inv == true) vnt_set_antenna_mode(priv, ANT_RXA); else vnt_set_antenna_mode(priv, ANT_RXB); } else { - priv->dwRxAntennaSel = 0; - if (priv->bTxRxAntInv == true) + priv->rx_antenna_sel = 0; + if (priv->tx_rx_ant_inv == true) vnt_set_antenna_mode(priv, ANT_RXB); else vnt_set_antenna_mode(priv, ANT_RXA);