staging: ks7010: add enum multicast_filter_type
authorTobin C. Harding <me@tobin.cc>
Thu, 27 Apr 2017 01:25:26 +0000 (11:25 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Apr 2017 09:47:26 +0000 (11:47 +0200)
Driver uses preprocessor directives to define multicast filter
constants. These can be defined using an enumeration type. Doing so
adds to the readability and gives the assists the compiler.

Add enumeration type multicast_filter_type to replace preprocessor
defined constants.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.h

index f1fdd840c8beb44fa2655617db6a54ce1cecbf62..41ae74a5c804e6e68be780008b5ff4acf917ee15 100644 (file)
@@ -624,10 +624,11 @@ enum {
        SHORT_PREAMBLE
 };
 
-/* multicast filter */
-#define MCAST_FILTER_MCAST    0
-#define MCAST_FILTER_MCASTALL 1
-#define MCAST_FILTER_PROMISC  2
+enum multicast_filter_type {
+       MCAST_FILTER_MCAST,
+       MCAST_FILTER_MCASTALL,
+       MCAST_FILTER_PROMISC,
+};
 
 #define NIC_MAX_MCAST_LIST 32