Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: ks7010: replace KS_WLAN_DEBUG with DEBUG preprocessor directive

This commit replaces custom KS_WLAN_DEBUG which is not being used anymore
in favour of DEBUG which is the one included when debugging is enabled.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sergio Paracuellos and committed by
Greg Kroah-Hartman
31ce0d86 127aaef4

+8 -10
-1
drivers/staging/ks7010/Makefile
··· 1 1 obj-$(CONFIG_KS7010) += ks7010.o 2 2 3 - ccflags-y += -DKS_WLAN_DEBUG=0 4 3 ks7010-y := michael_mic.o ks_hostif.o ks_wlan_net.o ks7010_sdio.o
+4 -5
drivers/staging/ks7010/ks7010_sdio.c
··· 385 385 386 386 /* length check */ 387 387 if (size > 2046 || size == 0) { 388 - #ifdef KS_WLAN_DEBUG 389 - if (KS_WLAN_DEBUG > 5) 390 - print_hex_dump_bytes("INVALID DATA dump: ", 391 - DUMP_PREFIX_OFFSET, 392 - rx_buffer->data, 32); 388 + #ifdef DEBUG 389 + print_hex_dump_bytes("INVALID DATA dump: ", 390 + DUMP_PREFIX_OFFSET, 391 + rx_buffer->data, 32); 393 392 #endif 394 393 ret = ks7010_sdio_writeb(priv, READ_STATUS, REG_STATUS_IDLE); 395 394 if (ret)
+3 -3
drivers/staging/ks7010/ks_hostif.c
··· 2409 2409 if (cnt_smeqbody(priv) < (SME_EVENT_BUFF_SIZE - 1)) { 2410 2410 priv->sme_i.event_buff[priv->sme_i.qtail] = event; 2411 2411 inc_smeqtail(priv); 2412 - #ifdef KS_WLAN_DEBUG 2412 + #ifdef DEBUG 2413 2413 if (priv->sme_i.max_event_count < cnt_smeqbody(priv)) 2414 2414 priv->sme_i.max_event_count = cnt_smeqbody(priv); 2415 - #endif /* KS_WLAN_DEBUG */ 2415 + #endif 2416 2416 } else { 2417 2417 /* in case of buffer overflow */ 2418 2418 netdev_err(priv->net_dev, "sme queue buffer overflow\n"); ··· 2461 2461 priv->sme_i.sme_status = SME_IDLE; 2462 2462 priv->sme_i.qhead = 0; 2463 2463 priv->sme_i.qtail = 0; 2464 - #ifdef KS_WLAN_DEBUG 2464 + #ifdef DEBUG 2465 2465 priv->sme_i.max_event_count = 0; 2466 2466 #endif 2467 2467 spin_lock_init(&priv->sme_i.sme_spin);
+1 -1
drivers/staging/ks7010/ks_wlan.h
··· 192 192 int event_buff[SME_EVENT_BUFF_SIZE]; 193 193 unsigned int qhead; 194 194 unsigned int qtail; 195 - #ifdef KS_WLAN_DEBUG 195 + #ifdef DEBUG 196 196 /* for debug */ 197 197 unsigned int max_event_count; 198 198 #endif