diff options
author | Sergio Paracuellos <[email protected]> | 2016-09-28 20:19:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2016-10-02 17:00:48 +0200 |
commit | 0fddae8ef86305135d3509953d1311199c5d2137 (patch) | |
tree | 202c01ecfc0fc58584c782d7152f34cfe483e998 | |
parent | 1bc4292aaa07347f0870b6690814b4e0a3a0c281 (diff) |
staging: wlang-ng: avoid new typedef: hfa384x_ChInfoResult_t
This patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_ChInfoResult_t
Signed-off-by: Sergio Paracuellos <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/wlan-ng/hfa384x.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h index beb97d9d766d..8fee24bc0401 100644 --- a/drivers/staging/wlan-ng/hfa384x.h +++ b/drivers/staging/wlan-ng/hfa384x.h @@ -688,10 +688,10 @@ struct hfa384x_ChInfoResultSub { #define HFA384x_CHINFORESULT_BSSACTIVE BIT(0) #define HFA384x_CHINFORESULT_PCFACTIVE BIT(1) -typedef struct hfa384x_ChInfoResult { +struct hfa384x_ChInfoResult { u16 scanchannels; struct hfa384x_ChInfoResultSub result[HFA384x_CHINFORESULT_MAX]; -} __packed hfa384x_ChInfoResult_t; +} __packed; /*-- Inquiry Frame, Diagnose: Host Scan Results & Subfields--*/ typedef struct hfa384x_HScanResultSub { @@ -765,7 +765,7 @@ typedef union hfa384x_infodata { struct hfa384x_CommTallies16 commtallies16; struct hfa384x_CommTallies32 commtallies32; struct hfa384x_ScanResult scanresult; - hfa384x_ChInfoResult_t chinforesult; + struct hfa384x_ChInfoResult chinforesult; hfa384x_HScanResult_t hscanresult; hfa384x_LinkStatus_t linkstatus; hfa384x_AssocStatus_t assocstatus; @@ -1371,7 +1371,7 @@ typedef struct hfa384x { struct { atomic_t done; u8 count; - hfa384x_ChInfoResult_t results; + struct hfa384x_ChInfoResult results; } channel_info; hfa384x_InfFrame_t *scanresults; |