summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/wilc_wlan_if.h
diff options
context:
space:
mode:
authorAjay Singh2018-11-12 06:45:14 +0100
committerGreg Kroah-Hartman2018-11-12 23:43:16 +0100
commit8c4574d6c84c81f3e1b0eef5fca543a56ce7598e (patch)
tree07660dc517d7fd431dd2d6814a42062bb6dfd9e7 /drivers/staging/wilc1000/wilc_wlan_if.h
parentstaging: wilc1000: move sdio_cmd52 & sdio_cmd53 struct to source file (diff)
downloadkernel-qcow2-linux-8c4574d6c84c81f3e1b0eef5fca543a56ce7598e.tar.gz
kernel-qcow2-linux-8c4574d6c84c81f3e1b0eef5fca543a56ce7598e.tar.xz
kernel-qcow2-linux-8c4574d6c84c81f3e1b0eef5fca543a56ce7598e.zip
staging: wilc1000: use enum contants for mac status & added 'WILC_' prefix
Clubbed mac status constants inside the enum constant and also added 'WILC_' prefix to have better namespace. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wlan_if.h')
-rw-r--r--drivers/staging/wilc1000/wilc_wlan_if.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h b/drivers/staging/wilc1000/wilc_wlan_if.h
index dc407434139a..923b07c586a0 100644
--- a/drivers/staging/wilc1000/wilc_wlan_if.h
+++ b/drivers/staging/wilc1000/wilc_wlan_if.h
@@ -24,9 +24,11 @@
*
********************************************/
-#define MAC_STATUS_INIT -1
-#define MAC_STATUS_CONNECTED 1
-#define MAC_STATUS_DISCONNECTED 0
+enum {
+ WILC_MAC_STATUS_INIT = -1,
+ WILC_MAC_STATUS_DISCONNECTED = 0,
+ WILC_MAC_STATUS_CONNECTED = 1
+};
struct tx_complete_data {
int size;