From patchwork Wed May 2 17:49:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 134857 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp962033lji; Wed, 2 May 2018 10:49:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpXFidhwSTjnaqfvWiJ0EaMnzjSPP/J680vPpplnNjxfhEJCVhZCe9aEX/7LnjCRhrKF8qW X-Received: by 2002:a63:a06a:: with SMTP id u42-v6mr16288428pgn.389.1525283393564; Wed, 02 May 2018 10:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525283393; cv=none; d=google.com; s=arc-20160816; b=uOj2m5VpYVzyDIhk7OoJjYlCGF2tqTpdJFxmIrTgGL6EU13XXZta8yw9BC/jhgVXmw iJB4HJIcLsSerZWhxFuTwbixFgnna9O0pGIEvsVghLd1SxUFnfQsxOSMH0EckQNZGr0M yKQSiTlJ5bAiKtjkLDUk66o0H/351pjzMdTHVs3IrQocI8i83VjqyfVZZxK8Bvecy2Mw WrkO/Z60QIPS6aWCnN71Sx5QEwSZ1fljnG0Oq3myxDxpusn5dUW+PtnqwWsFIQ+vHgks 9HRlBiyZGwf7b3j4vWk12wNjrcU5E1uH9129P2dXl7C8IIYs+stAebdEhvKecD2RyIyi yN8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:author:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=k963rsKbRvZ0iKEU2kAKepLfS69IrhXu8/g9e07LQVM=; b=Jx4BfFiKo/ngsHYmwKmR5u2ZbgImlTTYtkL0MVnuSi6ZET5wuepwyl5sDh9ZEjteMZ 58MdIQJfVhDDQc6Nnuk0uZaUpc7D+zY2Q+1xUWnFAj0PFlEDIL9yypJWkxwl3JMPooCS KJDOHl0eNSjzXp8URigOC0BgzRdqTeuOvaA01fwzS6Fs89lRGAiTg3dceDTYXDYQZlUQ lQ9WZbz6+sqbIrMiIfUcHtszWwWrSq5VeTHm+ttgXzHe3mPk+/qZgZMfiF/AMZmxRUkE SCvZKI18+DR3KHJJycbImdURiEZvLuvOhzT1ReZwMKb3wRmvSz3pD7L/X4Ox66eMo5Bd Km0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AxbxUT9q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k82si6867952pfj.302.2018.05.02.10.49.53; Wed, 02 May 2018 10:49:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AxbxUT9q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751883AbeEBRtu (ORCPT + 29 others); Wed, 2 May 2018 13:49:50 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:40413 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751447AbeEBRtp (ORCPT ); Wed, 2 May 2018 13:49:45 -0400 Received: by mail-pg0-f68.google.com with SMTP id l2-v6so11153081pgc.7 for ; Wed, 02 May 2018 10:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:author; bh=k963rsKbRvZ0iKEU2kAKepLfS69IrhXu8/g9e07LQVM=; b=AxbxUT9qRYh8lIakHpmRiDUTjORgRq+8Ab84o41kH+DOr72WyG7oQMCYxzEcUryJGX 5j8bapWDUpT8cjJWab1mHET4Gok7fc79mTCgIeEotf9YT/DYR0Y/pAOqqjIg+MEWC2xG mPro2v+Zmk1cShL/6IvmHt+rbbVP/YNNRnVfE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:author; bh=k963rsKbRvZ0iKEU2kAKepLfS69IrhXu8/g9e07LQVM=; b=pv70bCki1reUToNTPU9uoNOvxBF8BrvtLMIfp6zfEPyEiVWtR6el+/SzEkD9OyYFMn wI3CsqNTXq43SMcfg8lQl3kmq6xY3WLYiko7cvT/r0jQsM2Oy46ZeDZr+3/C4u44OSo1 /FZkOxUHTo3BFJvJVQ6Dq3LaJgKiH+XJTsoTz7lNfFG1rHdv8BxtJAO4ESTAHJC1jtJb OFvs63FAT5DUMtvTTfvIaxeURacO2eCSgLrQJt+iewWmpqbq+to1ZaCOIV+3n2BbAjuH 5aFPmVGb+P/xS+8rL7PYfjmZOxd6KzUOjd4tleZaXIlFfawpl627uVFWRwPNeqmfCbhG wnCQ== X-Gm-Message-State: ALQs6tAHTZWVrQZN87toJIxKExinIjFpMegoo/IpVJf5ObZlG2sPTC6b 0f0jAicO2Y3Oyg+gI1elKNKX201AbBc= X-Received: by 2002:a17:902:b609:: with SMTP id b9-v6mr20594360pls.29.1525283384352; Wed, 02 May 2018 10:49:44 -0700 (PDT) Received: from localhost.localdomain ([106.51.17.226]) by smtp.gmail.com with ESMTPSA id x71sm29889971pfe.47.2018.05.02.10.49.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 May 2018 10:49:43 -0700 (PDT) From: Amit Pundir To: lkml , linux-wireless@vger.kernel.org Cc: Samuel Ortiz , Christophe Ricard , Andy Shevchenko , Greg KH , John Stultz Subject: [PATCH] NFC: fdp: Remove __func__ parameter from dev_dbg() call Date: Wed, 2 May 2018 23:19:39 +0530 Message-Id: <1525283379-7141-1-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 Author: Amit Pundir Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove redundant __func__ parameter from dev_dgb() calls. Signed-off-by: Amit Pundir --- drivers/nfc/fdp/fdp.c | 22 +++++++++++----------- drivers/nfc/fdp/i2c.c | 20 +++++++++----------- 2 files changed, 20 insertions(+), 22 deletions(-) -- 2.7.4 diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c index d5784a4..3251346 100644 --- a/drivers/nfc/fdp/fdp.c +++ b/drivers/nfc/fdp/fdp.c @@ -249,7 +249,7 @@ static int fdp_nci_open(struct nci_dev *ndev) struct fdp_nci_info *info = nci_get_drvdata(ndev); struct device *dev = &info->phy->i2c_dev->dev; - dev_dbg(dev, "%s\n", __func__); + dev_dbg(dev, "\n"); r = info->phy_ops->enable(info->phy); @@ -261,7 +261,7 @@ static int fdp_nci_close(struct nci_dev *ndev) struct fdp_nci_info *info = nci_get_drvdata(ndev); struct device *dev = &info->phy->i2c_dev->dev; - dev_dbg(dev, "%s\n", __func__); + dev_dbg(dev, "\n"); return 0; } @@ -270,7 +270,7 @@ static int fdp_nci_send(struct nci_dev *ndev, struct sk_buff *skb) struct fdp_nci_info *info = nci_get_drvdata(ndev); struct device *dev = &info->phy->i2c_dev->dev; - dev_dbg(dev, "%s\n", __func__); + dev_dbg(dev, "\n"); if (atomic_dec_and_test(&info->data_pkt_counter)) info->data_pkt_counter_cb(ndev); @@ -283,7 +283,7 @@ int fdp_nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb) struct fdp_nci_info *info = nci_get_drvdata(ndev); struct device *dev = &info->phy->i2c_dev->dev; - dev_dbg(dev, "%s\n", __func__); + dev_dbg(dev, "\n"); return nci_recv_frame(ndev, skb); } EXPORT_SYMBOL(fdp_nci_recv_frame); @@ -498,7 +498,7 @@ static int fdp_nci_setup(struct nci_dev *ndev) int r; u8 patched = 0; - dev_dbg(dev, "%s\n", __func__); + dev_dbg(dev, "\n"); r = nci_core_init(ndev); if (r) @@ -609,7 +609,7 @@ static int fdp_nci_core_reset_ntf_packet(struct nci_dev *ndev, struct fdp_nci_info *info = nci_get_drvdata(ndev); struct device *dev = &info->phy->i2c_dev->dev; - dev_dbg(dev, "%s\n", __func__); + dev_dbg(dev, "\n"); info->setup_reset_ntf = 1; wake_up(&info->setup_wq); @@ -622,7 +622,7 @@ static int fdp_nci_prop_patch_ntf_packet(struct nci_dev *ndev, struct fdp_nci_info *info = nci_get_drvdata(ndev); struct device *dev = &info->phy->i2c_dev->dev; - dev_dbg(dev, "%s\n", __func__); + dev_dbg(dev, "\n"); info->setup_patch_ntf = 1; info->setup_patch_status = skb->data[0]; wake_up(&info->setup_wq); @@ -637,7 +637,7 @@ static int fdp_nci_prop_patch_rsp_packet(struct nci_dev *ndev, struct device *dev = &info->phy->i2c_dev->dev; u8 status = skb->data[0]; - dev_dbg(dev, "%s: status 0x%x\n", __func__, status); + dev_dbg(dev, "status 0x%x\n", status); nci_req_complete(ndev, status); return 0; @@ -650,7 +650,7 @@ static int fdp_nci_prop_set_production_data_rsp_packet(struct nci_dev *ndev, struct device *dev = &info->phy->i2c_dev->dev; u8 status = skb->data[0]; - dev_dbg(dev, "%s: status 0x%x\n", __func__, status); + dev_dbg(dev, "status 0x%x\n", status); nci_req_complete(ndev, status); return 0; @@ -695,7 +695,7 @@ static int fdp_nci_core_get_config_rsp_packet(struct nci_dev *ndev, dev_dbg(dev, "OTP version %d\n", info->otp_version); dev_dbg(dev, "RAM version %d\n", info->ram_version); dev_dbg(dev, "key index %d\n", info->key_index); - dev_dbg(dev, "%s: status 0x%x\n", __func__, rsp->status); + dev_dbg(dev, "status 0x%x\n", rsp->status); nci_req_complete(ndev, rsp->status); @@ -798,7 +798,7 @@ void fdp_nci_remove(struct nci_dev *ndev) struct fdp_nci_info *info = nci_get_drvdata(ndev); struct device *dev = &info->phy->i2c_dev->dev; - dev_dbg(dev, "%s\n", __func__); + dev_dbg(dev, "\n"); nci_unregister_device(ndev); nci_free_device(ndev); diff --git a/drivers/nfc/fdp/i2c.c b/drivers/nfc/fdp/i2c.c index b80d1ad..3138730 100644 --- a/drivers/nfc/fdp/i2c.c +++ b/drivers/nfc/fdp/i2c.c @@ -57,7 +57,7 @@ static int fdp_nci_i2c_enable(void *phy_id) { struct fdp_i2c_phy *phy = phy_id; - dev_dbg(&phy->i2c_dev->dev, "%s\n", __func__); + dev_dbg(&phy->i2c_dev->dev, "\n"); fdp_nci_i2c_reset(phy); return 0; @@ -67,7 +67,7 @@ static void fdp_nci_i2c_disable(void *phy_id) { struct fdp_i2c_phy *phy = phy_id; - dev_dbg(&phy->i2c_dev->dev, "%s\n", __func__); + dev_dbg(&phy->i2c_dev->dev, "\n"); fdp_nci_i2c_reset(phy); } @@ -113,8 +113,8 @@ static int fdp_nci_i2c_write(void *phy_id, struct sk_buff *skb) } if (r < 0 || r != skb->len) - dev_dbg(&client->dev, "%s: error err=%d len=%d\n", - __func__, r, skb->len); + dev_dbg(&client->dev, "error err=%d len=%d\n", + r, skb->len); if (r >= 0) { if (r != skb->len) { @@ -152,8 +152,7 @@ static int fdp_nci_i2c_read(struct fdp_i2c_phy *phy, struct sk_buff **skb) r = i2c_master_recv(client, tmp, len); if (r != len) { - dev_dbg(&client->dev, "%s: i2c recv err: %d\n", - __func__, r); + dev_dbg(&client->dev, "i2c recv err: %d\n", r); goto flush; } @@ -167,8 +166,7 @@ static int fdp_nci_i2c_read(struct fdp_i2c_phy *phy, struct sk_buff **skb) * and force resynchronization */ if (lrc) { - dev_dbg(&client->dev, "%s: corrupted packet\n", - __func__); + dev_dbg(&client->dev, "corrupted packet\n"); phy->next_read_size = 5; goto flush; } @@ -224,7 +222,7 @@ static irqreturn_t fdp_nci_i2c_irq_thread_fn(int irq, void *phy_id) } client = phy->i2c_dev; - dev_dbg(&client->dev, "%s\n", __func__); + dev_dbg(&client->dev, "\n"); r = fdp_nci_i2c_read(phy, &skb); @@ -305,7 +303,7 @@ static int fdp_nci_i2c_probe(struct i2c_client *client) u32 clock_freq; int r = 0; - dev_dbg(dev, "%s\n", __func__); + dev_dbg(dev, "\n"); if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { nfc_err(dev, "No I2C_FUNC_I2C support\n"); @@ -368,7 +366,7 @@ static int fdp_nci_i2c_remove(struct i2c_client *client) { struct fdp_i2c_phy *phy = i2c_get_clientdata(client); - dev_dbg(&client->dev, "%s\n", __func__); + dev_dbg(&client->dev, "\n"); fdp_nci_remove(phy->ndev); fdp_nci_i2c_disable(phy);