]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: wilc1000: removed typedef from enum BSSTYPE_T
authorAjay Singh <ajay.kathat@microchip.com>
Thu, 11 Jan 2018 14:12:14 +0000 (19:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jan 2018 14:52:21 +0000 (15:52 +0100)
This patch removes typedef from enum BSSTYPE_T and
rename it to bss_types.

It fixes "WARNING: do not add new typdefs" warning
reported by checkpatch.pl.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/wilc_wlan_if.h

index d69248a8c7b5978b5665c78bcda0d04026a45df4..4ff1a59a946744d0b418beac42e9ea7b0d614a31 100644 (file)
@@ -202,7 +202,7 @@ struct host_if_msg {
 };
 
 struct join_bss_param {
-       BSSTYPE_T bss_type;
+       enum bss_types bss_type;
        u8 dtim_period;
        u16 beacon_period;
        u16 cap_info;
index c1693cfc076de7f451b4053a9797278e765e3b74..2baf6c4619b5ef6ffee4ef5c94fb11bab1123ef6 100644 (file)
@@ -85,11 +85,11 @@ typedef enum {
        P2P_IE                  = 221,
 } BEACON_IE;
 
-typedef enum {
+enum bss_types {
        INFRASTRUCTURE          = 0,
        INDEPENDENT,
        AP,
-} BSSTYPE_T;
+};
 
 typedef enum {
        RATE_AUTO               = 0,