]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: wilc1000: removed enum typedef BUS_RELEASE_T
authorAjay Singh <ajay.kathat@microchip.com>
Thu, 11 Jan 2018 14:12:19 +0000 (19:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jan 2018 14:52:21 +0000 (15:52 +0100)
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>
drivers/staging/wilc1000/wilc_wlan.c
drivers/staging/wilc1000/wilc_wlan_if.h

index 4d070c472e9bf3ad35b1f740ccd73074d068a4d1..ac76bc7b166e5d1fc2d61a272d8ca6fe314211a8 100644 (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);
index 2bc500d6d4a1d1ae0bdfc41daa8108fe97710c45..1641ddb01b7b0134c8b2b9c367d266118e752c2d 100644 (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,