Commit b331f159 authored by Chris Park's avatar Chris Park Committed by Greg Kroah-Hartman

staging: wilc1000: moves to define values

This patch moves DEBUG, INFO, WRN and ERR values to wilc_debugfs.c file
because this is only used to wilc_debugfs.c file.
And, removes unnecessary WILC_DEBUGFS and else-case variables.
Signed-off-by: default avatarChris Park <chris.park@atmel.com>
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d16a595b
#ifndef LINUX_WLAN_COMMON_H #ifndef LINUX_WLAN_COMMON_H
#define LINUX_WLAN_COMMON_H #define LINUX_WLAN_COMMON_H
#if defined(WILC_DEBUGFS)
#define DEBUG BIT(0)
#define INFO BIT(1)
#define WRN BIT(2)
#define ERR BIT(3)
#else
#define DEBUG 1
#define INFO 0
#define WRN 0
#endif
#define LINUX_RX_SIZE (96 * 1024) #define LINUX_RX_SIZE (96 * 1024)
#define LINUX_TX_SIZE (64 * 1024) #define LINUX_TX_SIZE (64 * 1024)
......
...@@ -23,6 +23,10 @@ static struct dentry *wilc_dir; ...@@ -23,6 +23,10 @@ static struct dentry *wilc_dir;
/* /*
* -------------------------------------------------------------------------------- * --------------------------------------------------------------------------------
*/ */
#define DEBUG BIT(0)
#define INFO BIT(1)
#define WRN BIT(2)
#define ERR BIT(3)
#define DBG_LEVEL_ALL (DEBUG | INFO | WRN | ERR) #define DBG_LEVEL_ALL (DEBUG | INFO | WRN | ERR)
atomic_t WILC_DEBUG_LEVEL = ATOMIC_INIT(ERR); atomic_t WILC_DEBUG_LEVEL = ATOMIC_INIT(ERR);
......
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