Return-path: Received: from eusmtp01.atmel.com ([212.144.249.243]:40785 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424646AbcBRHdx (ORCPT ); Thu, 18 Feb 2016 02:33:53 -0500 From: Leo Kim To: CC: , , , , , , , , , Chris Park Subject: [PATCH 23/24] staging: wilc1000: moves to define values Date: Thu, 18 Feb 2016 16:27:34 +0900 Message-ID: <1455780455-21365-23-git-send-email-leo.kim@atmel.com> (sfid-20160218_083357_089310_7116A328) In-Reply-To: <1455780455-21365-1-git-send-email-leo.kim@atmel.com> References: <1455780455-21365-1-git-send-email-leo.kim@atmel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Chris Park 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: Chris Park Signed-off-by: Leo Kim --- drivers/staging/wilc1000/linux_wlan_common.h | 11 ----------- drivers/staging/wilc1000/wilc_debugfs.c | 4 ++++ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan_common.h b/drivers/staging/wilc1000/linux_wlan_common.h index 2e2109c..51601aa 100644 --- a/drivers/staging/wilc1000/linux_wlan_common.h +++ b/drivers/staging/wilc1000/linux_wlan_common.h @@ -1,17 +1,6 @@ #ifndef 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_TX_SIZE (64 * 1024) diff --git a/drivers/staging/wilc1000/wilc_debugfs.c b/drivers/staging/wilc1000/wilc_debugfs.c index 215e2f0..fcbc95d 100644 --- a/drivers/staging/wilc1000/wilc_debugfs.c +++ b/drivers/staging/wilc1000/wilc_debugfs.c @@ -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) atomic_t WILC_DEBUG_LEVEL = ATOMIC_INIT(ERR); -- 1.9.1