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>
This commit is contained in:
Ajay Singh 2018-01-11 19:42:19 +05:30 committed by Greg Kroah-Hartman
parent 13ae5a7bb1
commit a9ee75e850
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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,