From patchwork Thu Apr 17 13:27:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gang ZHAO X-Patchwork-Id: 4008241 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2844E9F336 for ; Thu, 17 Apr 2014 13:27:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A720201BF for ; Thu, 17 Apr 2014 13:27:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 60AD3201B9 for ; Thu, 17 Apr 2014 13:27:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756553AbaDQN1y (ORCPT ); Thu, 17 Apr 2014 09:27:54 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:44051 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756318AbaDQN1x (ORCPT ); Thu, 17 Apr 2014 09:27:53 -0400 Received: by mail-pa0-f54.google.com with SMTP id lf10so381445pab.13 for ; Thu, 17 Apr 2014 06:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=dWUmeCz5UXSH7roXovvbc79pPEe0uC8GcSLZ+laaDjY=; b=iVP0ZX9AVqO3iMJ2hk3FY71lnmE4I6+B0OLYMlXMT7Z2SclFitbDzZbfY4XdXTqo9V P0NPCT+CKSKjCILA994PwH7r3zAZ4hYIK+67K/IorpsE2Ybg31zJQeTU8BmS73kXvxoL 7EHY0KlNv7wDa98/ACO7xNiDKR5XfMpgWiUYV+/zLRqAs6M6P0j1nOkfsLbwKDCduprX tA9ULjlZ3IGpkVA6dXz4PnVt3jj47q0CeyCx7bLwiH4sKmQt/NPedkHS8/DPbz5BcTH+ urdtr66w6dmcsBceU4xikprDjv4sMCN2yhmjfqTic1aM+digwL3Vr9Ii8iboYukQWSii +Obg== X-Received: by 10.66.189.106 with SMTP id gh10mr15806714pac.31.1397741273009; Thu, 17 Apr 2014 06:27:53 -0700 (PDT) Received: from localhost.localdomain ([175.153.40.25]) by mx.google.com with ESMTPSA id ir10sm53596895pbc.59.2014.04.17.06.27.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Apr 2014 06:27:52 -0700 (PDT) From: "Zhao, Gang" To: Cc: "John W. Linville" Subject: [PATCH 3/6] adm8211: replace wiphy_debug() with wiphy_dbg() Date: Thu, 17 Apr 2014 21:27:11 +0800 Message-Id: <8afc1980a6de073836b091dc8ef5d9f13f25a814.1397741141.git.gamerh2o@gmail.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Dynamic debug function wiphy_dbg() is more convenient for debugging, and if user doesn't enable CONFIG_DYNAMIC_DEBUG, it will fall back to normal static debug, just as what wiphy_debug() does. When all the users of wiphy_debug() are gone, wiphy_debug() can be removed. Signed-off-by: Zhao, Gang --- drivers/net/wireless/adm8211.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c index f35f93c..434e3514 100644 --- a/drivers/net/wireless/adm8211.c +++ b/drivers/net/wireless/adm8211.c @@ -374,8 +374,8 @@ static void adm8211_interrupt_rci(struct ieee80211_hw *dev) pktlen = status & RDES0_STATUS_FL; if (pktlen > RX_PKT_SIZE) { if (net_ratelimit()) - wiphy_debug(dev->wiphy, "frame too long (%d)\n", - pktlen); + wiphy_dbg(dev->wiphy, "frame too long (%d)\n", + pktlen); pktlen = RX_PKT_SIZE; } @@ -458,7 +458,7 @@ static irqreturn_t adm8211_interrupt(int irq, void *dev_id) #define ADM8211_INT(x) \ do { \ if (unlikely(stsr & ADM8211_STSR_ ## x)) \ - wiphy_debug(dev->wiphy, "%s\n", #x); \ + wiphy_dbg(dev->wiphy, "%s\n", #x); \ } while (0) struct ieee80211_hw *dev = dev_id; @@ -571,9 +571,9 @@ static int adm8211_write_bbp(struct ieee80211_hw *dev, u8 addr, u8 data) } if (timeout == 0) { - wiphy_debug(dev->wiphy, - "adm8211_write_bbp(%d,%d) failed prewrite (reg=0x%08x)\n", - addr, data, reg); + wiphy_dbg(dev->wiphy, + "adm8211_write_bbp(%d,%d) failed prewrite (reg=0x%08x)\n", + addr, data, reg); return -ETIMEDOUT; } @@ -606,9 +606,9 @@ static int adm8211_write_bbp(struct ieee80211_hw *dev, u8 addr, u8 data) if (timeout == 0) { ADM8211_CSR_WRITE(BBPCTL, ADM8211_CSR_READ(BBPCTL) & ~ADM8211_BBPCTL_WR); - wiphy_debug(dev->wiphy, - "adm8211_write_bbp(%d,%d) failed postwrite (reg=0x%08x)\n", - addr, data, reg); + wiphy_dbg(dev->wiphy, + "adm8211_write_bbp(%d,%d) failed postwrite (reg=0x%08x)\n", + addr, data, reg); return -ETIMEDOUT; } @@ -676,8 +676,8 @@ static int adm8211_rf_set_channel(struct ieee80211_hw *dev, unsigned int chan) break; default: - wiphy_debug(dev->wiphy, "unsupported transceiver type %d\n", - priv->transceiver_type); + wiphy_dbg(dev->wiphy, "unsupported transceiver type %d\n", + priv->transceiver_type); break; } @@ -733,8 +733,8 @@ static int adm8211_rf_set_channel(struct ieee80211_hw *dev, unsigned int chan) /* Nothing to do for ADMtek BBP */ } else if (priv->bbp_type != ADM8211_TYPE_ADMTEK) - wiphy_debug(dev->wiphy, "unsupported BBP type %d\n", - priv->bbp_type); + wiphy_dbg(dev->wiphy, "unsupported BBP type %d\n", + priv->bbp_type); ADM8211_RESTORE(); @@ -1028,12 +1028,12 @@ static int adm8211_hw_init_bbp(struct ieee80211_hw *dev) break; default: - wiphy_debug(dev->wiphy, "unsupported transceiver %d\n", - priv->transceiver_type); + wiphy_dbg(dev->wiphy, "unsupported transceiver %d\n", + priv->transceiver_type); break; } } else - wiphy_debug(dev->wiphy, "unsupported BBP %d\n", priv->bbp_type); + wiphy_dbg(dev->wiphy, "unsupported BBP %d\n", priv->bbp_type); ADM8211_CSR_WRITE(SYNRF, 0);