diff options
author | Ajay Singh <ajay.kathat@microchip.com> | 2018-01-11 19:42:19 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-15 15:52:21 +0100 |
commit | a9ee75e85043743ebaa5143e58b21be406ae85ae (patch) | |
tree | a4fc54439d370bff2b3b47e12f8afaca0f81ad9e /drivers/staging | |
parent | 13ae5a7bb173a327769848b1c7f5b2a41d407d3e (diff) | |
download | linux-a9ee75e85043743ebaa5143e58b21be406ae85ae.tar.bz2 |
staging: wilc1000: removed enum typedef BUS_RELEASE_T
This patch removes enum typedef BUS_RELEASE_T and define
"enum bus_release" to use instead of typedef.
checkpatch.pl not to add new typedef warning is fixed with this patch.
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wlan.c | 2 | ||||
-rw-r--r-- | drivers/staging/wilc1000/wilc_wlan_if.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index 4d070c472e9b..ac76bc7b166e 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -14,7 +14,7 @@ static inline void acquire_bus(struct wilc *wilc, enum bus_acquire acquire) chip_wakeup(wilc); } -static inline void release_bus(struct wilc *wilc, BUS_RELEASE_T release) +static inline void release_bus(struct wilc *wilc, enum bus_release release) { if (release == RELEASE_ALLOW_SLEEP) chip_allow_sleep(wilc); diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h b/drivers/staging/wilc1000/wilc_wlan_if.h index 2bc500d6d4a1..1641ddb01b7b 100644 --- a/drivers/staging/wilc1000/wilc_wlan_if.h +++ b/drivers/staging/wilc1000/wilc_wlan_if.h @@ -148,10 +148,10 @@ enum bus_acquire { ACQUIRE_AND_WAKEUP = 1, }; -typedef enum { +enum bus_release { RELEASE_ONLY = 0, RELEASE_ALLOW_SLEEP = 1, -} BUS_RELEASE_T; +}; typedef enum { NO_SECURITY = 0, |