staging: vt6656: struct vnt_private remove camel case antenna variables
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 19 Jul 2014 11:30:16 +0000 (12:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jul 2014 19:11:58 +0000 (12:11 -0700)
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 <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/device.h
drivers/staging/vt6656/main_usb.c
drivers/staging/vt6656/wcmd.c

index ecf8da02cd942e304bc7e77ee71990753d45f92e..c4e83b51a66f3c03a49cdc0bd00d68dd8b42c5c2 100644 (file)
@@ -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 */
index 4ca6639fb2abc755a9bf227b283345f49b0ade07..1137a190ec0ee30963f9ed19cccad723eee92ba5 100644 (file)
@@ -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);
 
index c56b7b3c90de72c46449c2d71db5656c62a3cc39..304f6d67ccae010b95398f0dc85d785da8748cd4 100644 (file)
@@ -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);