Commit f730fb19 authored by Tobin C. Harding's avatar Tobin C. Harding Committed by Greg Kroah-Hartman

staging: ks7010: add enum multicast_filter_type

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: default avatarTobin C. Harding <me@tobin.cc>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 72f78682
...@@ -624,10 +624,11 @@ enum { ...@@ -624,10 +624,11 @@ enum {
SHORT_PREAMBLE SHORT_PREAMBLE
}; };
/* multicast filter */ enum multicast_filter_type {
#define MCAST_FILTER_MCAST 0 MCAST_FILTER_MCAST,
#define MCAST_FILTER_MCASTALL 1 MCAST_FILTER_MCASTALL,
#define MCAST_FILTER_PROMISC 2 MCAST_FILTER_PROMISC,
};
#define NIC_MAX_MCAST_LIST 32 #define NIC_MAX_MCAST_LIST 32
......
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