staging: vt6656: struct vnt_private replace byPacketType with packet_type
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 20 Jul 2014 14:33:12 +0000 (15:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jul 2014 19:16:28 +0000 (12:16 -0700)
Removing type prefix and camel case.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/card.c
drivers/staging/vt6656/device.h
drivers/staging/vt6656/main_usb.c
drivers/staging/vt6656/rxtx.c

index 94b933f6332b353feccb82bf705f6f2b9659b9cf..80b2ff88737b503be8ad1381a438592e462e6648 100644 (file)
@@ -365,12 +365,12 @@ void vnt_update_ifs(struct vnt_private *priv)
        u8 max_min = 0;
        u8 data[4];
 
-       if (priv->byPacketType == PK_TYPE_11A) {
+       if (priv->packet_type == PK_TYPE_11A) {
                priv->slot = C_SLOT_SHORT;
                priv->sifs = C_SIFS_A;
                priv->difs = C_SIFS_A + 2 * C_SLOT_SHORT;
                max_min = 4;
-       } else if (priv->byPacketType == PK_TYPE_11B) {
+       } else if (priv->packet_type == PK_TYPE_11B) {
                priv->slot = C_SLOT_LONG;
                priv->sifs = C_SIFS_BG;
                priv->difs = C_SIFS_BG + 2 * C_SLOT_LONG;
@@ -793,7 +793,7 @@ void vnt_set_bss_mode(struct vnt_private *priv)
        else
                vnt_mac_set_bb_type(priv, priv->bb_type);
 
-       priv->byPacketType = vnt_get_pkt_type(priv);
+       priv->packet_type = vnt_get_pkt_type(priv);
 
        if (priv->bb_type == BB_TYPE_11A)
                vnt_control_out_u8(priv, MESSAGE_REQUEST_BBREG, 0x88, 0x03);
index 7b5779a7bb221e1b14220048838ff5b71818cf80..1f9ea51a194769fd09101de94fd480a3dda0adba 100644 (file)
@@ -331,7 +331,7 @@ struct vnt_private {
 
        /* Rate */
        u8 bb_type; /* 0: 11A, 1:11B, 2:11G */
-       u8 byPacketType; /* 0:11a 1:11b 2:11gb 3:11ga */
+       u8 packet_type; /* 0:11a 1:11b 2:11gb 3:11ga */
        u32 wBasicRate;
        u8 byTopOFDMBasicRate;
        u8 byTopCCKBasicRate;
index 5ca28c2138a559e50a360f3598c6f6b91d7949fe..85142b717d15cc409cfbde9d387d98b30a7d24c4 100644 (file)
@@ -122,7 +122,7 @@ static void device_set_options(struct vnt_private *priv)
        priv->byLongRetryLimit = LONG_RETRY_DEF;
        priv->op_mode = NL80211_IFTYPE_UNSPECIFIED;
        priv->bb_type = BBP_TYPE_DEF;
-       priv->byPacketType = priv->bb_type;
+       priv->packet_type = priv->bb_type;
        priv->byAutoFBCtrl = AUTO_FB_0;
        priv->byPreambleType = 0;
        priv->exist_sw_net_addr = false;
@@ -142,7 +142,7 @@ static int device_init_registers(struct vnt_private *priv)
        u8 calib_tx_iq = 0, calib_tx_dc = 0, calib_rx_iq = 0;
 
        dev_dbg(&priv->usb->dev, "---->INIbInitAdapter. [%d][%d]\n",
-                               DEVICE_INIT_COLD, priv->byPacketType);
+                               DEVICE_INIT_COLD, priv->packet_type);
 
        if (!vnt_check_firmware_version(priv)) {
                if (vnt_download_firmware(priv) == true) {
index 3347a72bf0e70dd72c224cf35385dfa7b78e8ad9..03f299daaf722a6581cd608cd814e513d69de6ad 100644 (file)
@@ -771,7 +771,7 @@ int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb)
        }
 
        if (current_rate > RATE_11M)
-               pkt_type = priv->byPacketType;
+               pkt_type = priv->packet_type;
        else
                pkt_type = PK_TYPE_11B;