Commit a9ee75e8 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

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: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 13ae5a7b
...@@ -14,7 +14,7 @@ static inline void acquire_bus(struct wilc *wilc, enum bus_acquire acquire) ...@@ -14,7 +14,7 @@ static inline void acquire_bus(struct wilc *wilc, enum bus_acquire acquire)
chip_wakeup(wilc); 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) if (release == RELEASE_ALLOW_SLEEP)
chip_allow_sleep(wilc); chip_allow_sleep(wilc);
......
...@@ -148,10 +148,10 @@ enum bus_acquire { ...@@ -148,10 +148,10 @@ enum bus_acquire {
ACQUIRE_AND_WAKEUP = 1, ACQUIRE_AND_WAKEUP = 1,
}; };
typedef enum { enum bus_release {
RELEASE_ONLY = 0, RELEASE_ONLY = 0,
RELEASE_ALLOW_SLEEP = 1, RELEASE_ALLOW_SLEEP = 1,
} BUS_RELEASE_T; };
typedef enum { typedef enum {
NO_SECURITY = 0, NO_SECURITY = 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment