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: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Tobin C. Harding 2017-04-27 11:25:26 +10:00 committed by Greg Kroah-Hartman
parent 72f78682da
commit f730fb19dd
1 changed files with 5 additions and 4 deletions

View 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