ath10k: spelling and miscellaneous neatening
authorJoe Perches <joe@perches.com>
Mon, 26 Sep 2016 18:56:21 +0000 (21:56 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 27 Sep 2016 12:00:48 +0000 (15:00 +0300)
Correct some trivial comment typos.
Remove unnecessary parentheses in a long line.

Signed-off-by: Joe Perches <joe@perches.com>
[kvalo@qca.qualcomm.com: drop the change for return]
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/ce.c
drivers/net/wireless/ath/ath10k/htt.h
drivers/net/wireless/ath/ath10k/hw.c
drivers/net/wireless/ath/ath10k/hw.h
drivers/net/wireless/ath/ath10k/targaddrs.h
drivers/net/wireless/ath/ath10k/wmi.h

index 65d8d71..e720554 100644 (file)
@@ -39,7 +39,7 @@
  * chooses what to send (buffer address, length). The destination
  * side keeps a supply of "anonymous receive buffers" available and
  * it handles incoming data as it arrives (when the destination
  * chooses what to send (buffer address, length). The destination
  * side keeps a supply of "anonymous receive buffers" available and
  * it handles incoming data as it arrives (when the destination
- * recieves an interrupt).
+ * receives an interrupt).
  *
  * The sender may send a simple buffer (address/length) or it may
  * send a small list of buffers.  When a small list is sent, hardware
  *
  * The sender may send a simple buffer (address/length) or it may
  * send a small list of buffers.  When a small list is sent, hardware
index 98c1424..0d2ed09 100644 (file)
@@ -595,7 +595,7 @@ enum htt_rx_mpdu_status {
        /* only accept EAPOL frames */
        HTT_RX_IND_MPDU_STATUS_UNAUTH_PEER,
        HTT_RX_IND_MPDU_STATUS_OUT_OF_SYNC,
        /* only accept EAPOL frames */
        HTT_RX_IND_MPDU_STATUS_UNAUTH_PEER,
        HTT_RX_IND_MPDU_STATUS_OUT_OF_SYNC,
-       /* Non-data in promiscous mode */
+       /* Non-data in promiscuous mode */
        HTT_RX_IND_MPDU_STATUS_MGMT_CTRL,
        HTT_RX_IND_MPDU_STATUS_TKIP_MIC_ERR,
        HTT_RX_IND_MPDU_STATUS_DECRYPT_ERR,
        HTT_RX_IND_MPDU_STATUS_MGMT_CTRL,
        HTT_RX_IND_MPDU_STATUS_TKIP_MIC_ERR,
        HTT_RX_IND_MPDU_STATUS_DECRYPT_ERR,
@@ -900,7 +900,7 @@ struct htt_rx_in_ord_ind {
  *     Purpose: indicate how many 32-bit integers follow the message header
  *   - NUM_CHARS
  *     Bits 31:16
  *     Purpose: indicate how many 32-bit integers follow the message header
  *   - NUM_CHARS
  *     Bits 31:16
- *     Purpose: indicate how many 8-bit charaters follow the series of integers
+ *     Purpose: indicate how many 8-bit characters follow the series of integers
  */
 struct htt_rx_test {
        u8 num_ints;
  */
 struct htt_rx_test {
        u8 num_ints;
@@ -1042,10 +1042,10 @@ struct htt_dbg_stats_wal_tx_stats {
        /* illegal rate phy errors  */
        __le32 illgl_rate_phy_err;
 
        /* illegal rate phy errors  */
        __le32 illgl_rate_phy_err;
 
-       /* wal pdev continous xretry */
+       /* wal pdev continuous xretry */
        __le32 pdev_cont_xretry;
 
        __le32 pdev_cont_xretry;
 
-       /* wal pdev continous xretry */
+       /* wal pdev continuous xretry */
        __le32 pdev_tx_timeout;
 
        /* wal pdev resets  */
        __le32 pdev_tx_timeout;
 
        /* wal pdev resets  */
index c2ecb9b..675e75d 100644 (file)
@@ -85,7 +85,7 @@ const struct ath10k_hw_regs qca99x0_regs = {
        .ce7_base_address                       = 0x0004bc00,
        /* Note: qca99x0 supports upto 12 Copy Engines. Other than address of
         * CE0 and CE1 no other copy engine is directly referred in the code.
        .ce7_base_address                       = 0x0004bc00,
        /* Note: qca99x0 supports upto 12 Copy Engines. Other than address of
         * CE0 and CE1 no other copy engine is directly referred in the code.
-        * It is not really neccessary to assign address for newly supported
+        * It is not really necessary to assign address for newly supported
         * CEs in this address table.
         *      Copy Engine             Address
         *      CE8                     0x0004c000
         * CEs in this address table.
         *      Copy Engine             Address
         *      CE8                     0x0004c000
index 308e423..4a01bcf 100644 (file)
@@ -284,7 +284,7 @@ void ath10k_hw_fill_survey_time(struct ath10k *ar, struct survey_info *survey,
 #define QCA_REV_9377(ar) ((ar)->hw_rev == ATH10K_HW_QCA9377)
 #define QCA_REV_40XX(ar) ((ar)->hw_rev == ATH10K_HW_QCA4019)
 
 #define QCA_REV_9377(ar) ((ar)->hw_rev == ATH10K_HW_QCA9377)
 #define QCA_REV_40XX(ar) ((ar)->hw_rev == ATH10K_HW_QCA4019)
 
-/* Known pecularities:
+/* Known peculiarities:
  *  - raw appears in nwifi decap, raw and nwifi appear in ethernet decap
  *  - raw have FCS, nwifi doesn't
  *  - ethernet frames have 802.11 header decapped and parts (base hdr, cipher
  *  - raw appears in nwifi decap, raw and nwifi appear in ethernet decap
  *  - raw have FCS, nwifi doesn't
  *  - ethernet frames have 802.11 header decapped and parts (base hdr, cipher
index aaf53a8..a47cab4 100644 (file)
@@ -405,7 +405,7 @@ Fw Mode/SubMode Mask
  * 1. target firmware would check magic number and if it's a match, firmware
  *    would consider the bits[0:15] are valid and base on that to calculate
  *    the end of DRAM. Early allocation would be located at that area and
  * 1. target firmware would check magic number and if it's a match, firmware
  *    would consider the bits[0:15] are valid and base on that to calculate
  *    the end of DRAM. Early allocation would be located at that area and
- *    may be reclaimed when necesary
+ *    may be reclaimed when necessary
  * 2. if no magic number is found, early allocation would happen at "_end"
  *    symbol of ROM which is located before the app-data and might NOT be
  *    re-claimable. If this is adopted, link script should keep this in
  * 2. if no magic number is found, early allocation would happen at "_end"
  *    symbol of ROM which is located before the app-data and might NOT be
  *    re-claimable. If this is adopted, link script should keep this in
index 48e04b9..6a68817 100644 (file)
@@ -55,7 +55,7 @@
  *    type.
  *
  * 6. Comment each parameter part of the WMI command/event structure by
  *    type.
  *
  * 6. Comment each parameter part of the WMI command/event structure by
- *    using the 2 stars at the begining of C comment instead of one star to
+ *    using the 2 stars at the beginning of C comment instead of one star to
  *    enable HTML document generation using Doxygen.
  *
  */
  *    enable HTML document generation using Doxygen.
  *
  */
@@ -2087,7 +2087,7 @@ struct wmi_resource_config {
         * In offload mode target supports features like WOW, chatter and
         * other protocol offloads. In order to support them some
         * functionalities like reorder buffering, PN checking need to be
         * In offload mode target supports features like WOW, chatter and
         * other protocol offloads. In order to support them some
         * functionalities like reorder buffering, PN checking need to be
-        * done in target. This determines maximum number of peers suported
+        * done in target. This determines maximum number of peers supported
         * by target in offload mode
         */
        __le32 num_offload_peers;
         * by target in offload mode
         */
        __le32 num_offload_peers;
@@ -2268,7 +2268,7 @@ struct wmi_resource_config {
         * Max. number of Tx fragments per MSDU
         *  This parameter controls the max number of Tx fragments per MSDU.
         *  This is sent by the target as part of the WMI_SERVICE_READY event
         * Max. number of Tx fragments per MSDU
         *  This parameter controls the max number of Tx fragments per MSDU.
         *  This is sent by the target as part of the WMI_SERVICE_READY event
-        *  and is overriden by the OS shim as required.
+        *  and is overridden by the OS shim as required.
         */
        __le32 max_frag_entries;
 } __packed;
         */
        __le32 max_frag_entries;
 } __packed;
@@ -2450,7 +2450,7 @@ struct wmi_resource_config_10x {
         * Max. number of Tx fragments per MSDU
         *  This parameter controls the max number of Tx fragments per MSDU.
         *  This is sent by the target as part of the WMI_SERVICE_READY event
         * Max. number of Tx fragments per MSDU
         *  This parameter controls the max number of Tx fragments per MSDU.
         *  This is sent by the target as part of the WMI_SERVICE_READY event
-        *  and is overriden by the OS shim as required.
+        *  and is overridden by the OS shim as required.
         */
        __le32 max_frag_entries;
 } __packed;
         */
        __le32 max_frag_entries;
 } __packed;
@@ -2744,7 +2744,7 @@ struct wmi_init_cmd {
        struct wmi_host_mem_chunks mem_chunks;
 } __packed;
 
        struct wmi_host_mem_chunks mem_chunks;
 } __packed;
 
-/* _10x stucture is from 10.X FW API */
+/* _10x structure is from 10.X FW API */
 struct wmi_init_cmd_10x {
        struct wmi_resource_config_10x resource_config;
        struct wmi_host_mem_chunks mem_chunks;
 struct wmi_init_cmd_10x {
        struct wmi_resource_config_10x resource_config;
        struct wmi_host_mem_chunks mem_chunks;
@@ -3967,7 +3967,7 @@ struct wmi_pdev_stats_tx {
        /* illegal rate phy errors  */
        __le32 illgl_rate_phy_err;
 
        /* illegal rate phy errors  */
        __le32 illgl_rate_phy_err;
 
-       /* wal pdev continous xretry */
+       /* wal pdev continuous xretry */
        __le32 pdev_cont_xretry;
 
        /* wal pdev continous xretry */
        __le32 pdev_cont_xretry;
 
        /* wal pdev continous xretry */
@@ -4461,9 +4461,9 @@ struct wmi_vdev_start_request_cmd {
        __le32 flags;
        /* ssid field. Only valid for AP/GO/IBSS/BTAmp VDEV type. */
        struct wmi_ssid ssid;
        __le32 flags;
        /* ssid field. Only valid for AP/GO/IBSS/BTAmp VDEV type. */
        struct wmi_ssid ssid;
-       /* beacon/probe reponse xmit rate. Applicable for SoftAP. */
+       /* beacon/probe response xmit rate. Applicable for SoftAP. */
        __le32 bcn_tx_rate;
        __le32 bcn_tx_rate;
-       /* beacon/probe reponse xmit power. Applicable for SoftAP. */
+       /* beacon/probe response xmit power. Applicable for SoftAP. */
        __le32 bcn_tx_power;
        /* number of p2p NOA descriptor(s) from scan entry */
        __le32 num_noa_descriptors;
        __le32 bcn_tx_power;
        /* number of p2p NOA descriptor(s) from scan entry */
        __le32 num_noa_descriptors;
@@ -4691,7 +4691,7 @@ enum wmi_vdev_param {
        WMI_VDEV_PARAM_BEACON_INTERVAL,
        /* Listen interval in TUs */
        WMI_VDEV_PARAM_LISTEN_INTERVAL,
        WMI_VDEV_PARAM_BEACON_INTERVAL,
        /* Listen interval in TUs */
        WMI_VDEV_PARAM_LISTEN_INTERVAL,
-       /* muticast rate in Mbps */
+       /* multicast rate in Mbps */
        WMI_VDEV_PARAM_MULTICAST_RATE,
        /* management frame rate in Mbps */
        WMI_VDEV_PARAM_MGMT_TX_RATE,
        WMI_VDEV_PARAM_MULTICAST_RATE,
        /* management frame rate in Mbps */
        WMI_VDEV_PARAM_MGMT_TX_RATE,
@@ -4822,7 +4822,7 @@ enum wmi_10x_vdev_param {
        WMI_10X_VDEV_PARAM_BEACON_INTERVAL,
        /* Listen interval in TUs */
        WMI_10X_VDEV_PARAM_LISTEN_INTERVAL,
        WMI_10X_VDEV_PARAM_BEACON_INTERVAL,
        /* Listen interval in TUs */
        WMI_10X_VDEV_PARAM_LISTEN_INTERVAL,
-       /* muticast rate in Mbps */
+       /* multicast rate in Mbps */
        WMI_10X_VDEV_PARAM_MULTICAST_RATE,
        /* management frame rate in Mbps */
        WMI_10X_VDEV_PARAM_MGMT_TX_RATE,
        WMI_10X_VDEV_PARAM_MULTICAST_RATE,
        /* management frame rate in Mbps */
        WMI_10X_VDEV_PARAM_MGMT_TX_RATE,
@@ -5067,7 +5067,7 @@ struct wmi_vdev_simple_event {
 } __packed;
 
 /* VDEV start response status codes */
 } __packed;
 
 /* VDEV start response status codes */
-/* VDEV succesfully started */
+/* VDEV successfully started */
 #define WMI_INIFIED_VDEV_START_RESPONSE_STATUS_SUCCESS 0x0
 
 /* requested VDEV not found */
 #define WMI_INIFIED_VDEV_START_RESPONSE_STATUS_SUCCESS 0x0
 
 /* requested VDEV not found */
@@ -5383,7 +5383,7 @@ enum wmi_sta_ps_param_pspoll_count {
 #define WMI_UAPSD_AC_TYPE_TRIG 1
 
 #define WMI_UAPSD_AC_BIT_MASK(ac, type) \
 #define WMI_UAPSD_AC_TYPE_TRIG 1
 
 #define WMI_UAPSD_AC_BIT_MASK(ac, type) \
-       ((type ==  WMI_UAPSD_AC_TYPE_DELI) ? (1 << (ac << 1)) : (1 << ((ac << 1) + 1)))
+       (type == WMI_UAPSD_AC_TYPE_DELI ? 1 << (ac << 1) : 1 << ((ac << 1) + 1))
 
 enum wmi_sta_ps_param_uapsd {
        WMI_STA_PS_UAPSD_AC0_DELIVERY_EN = (1 << 0),
 
 enum wmi_sta_ps_param_uapsd {
        WMI_STA_PS_UAPSD_AC0_DELIVERY_EN = (1 << 0),