From: Ajay Singh Date: Thu, 11 Jan 2018 14:12:19 +0000 (+0530) Subject: staging: wilc1000: removed enum typedef BUS_RELEASE_T X-Git-Tag: Ubuntu-5.13.0-19.19~11686^2~109 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a9ee75e85043743ebaa5143e58b21be406ae85ae;p=mirror_ubuntu-jammy-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- 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,