From patchwork Sat Nov 14 00:17:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bongsu Jeon X-Patchwork-Id: 11905177 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FBECC63697 for ; Sat, 14 Nov 2020 00:18:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2D41622258 for ; Sat, 14 Nov 2020 00:18:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="gMmUn/xA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726455AbgKNARm (ORCPT ); Fri, 13 Nov 2020 19:17:42 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:10865 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726176AbgKNARl (ORCPT ); Fri, 13 Nov 2020 19:17:41 -0500 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20201114001738epoutp042ccdd9275619d281d0e64ec9abbaeb9f~HN7i4dPv-0945609456epoutp04G for ; Sat, 14 Nov 2020 00:17:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20201114001738epoutp042ccdd9275619d281d0e64ec9abbaeb9f~HN7i4dPv-0945609456epoutp04G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1605313058; bh=J2Ss3gXaivOMfsVVibcpB28cGPZCXhkB0HkiQoB0oto=; h=Subject:Reply-To:From:To:CC:Date:References:From; b=gMmUn/xA8xp7w3F3JA2eMBDtETy1j9EJ62BQqEmX4IqeseY467cC9fu7YuAetYSh7 sYzwjX46B87ZUDgMBFvJ9IWME4egnahAAKyFSYP/OntfuX9aEiXBeSq0IEGCXWLRjk 44tnxZ9wGu8OB9BGhRCh/C0EvowNG8zt+hXTnnkY= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20201114001737epcas2p1ad9a4b6892fb920cfc712f19c29d6e2d~HN7iA4Gat1975519755epcas2p1N; Sat, 14 Nov 2020 00:17:37 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.40.189]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4CXwrw35GPzMqYkY; Sat, 14 Nov 2020 00:17:36 +0000 (GMT) X-AuditID: b6c32a48-4f9ff7000000cd1f-93-5faf2220c17e Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 00.A0.52511.0222FAF5; Sat, 14 Nov 2020 09:17:36 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH net-next 1/3] nfc: s3fwrn5: Remove the max_payload. Reply-To: bongsu.jeon@samsung.com Sender: Bongsu Jeon From: Bongsu Jeon To: "kuba@kernel.org" , "krzk@kernel.org" , Krzysztof Opasiak CC: "netdev@vger.kernel.org" X-Priority: 3 X-Content-Kind-Code: NORMAL X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20201114001736epcms2p258c17155d29874c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qDklrFmaqTf+cof0yN2Mt1bSNzR/Pk S78f7Lk4u5TjuvHaS6yzp+uE5XscffNfgPmjZ/Qx7sobv5OP8xtc0JvLz1fuwjCtO2Kfm9ik 2tk7HFIdv0c1vYw5Y14eua3lXfqh/UkdYWa203MeaJdf/1UjzhjGulh8j8mD1C/nJ/vq3p8V XShx3vZNi33OPdt008sHFv9vqhB9Gr18Y/6VXMlM9ql3n2k7nJLmCSnemsJttpn74hPxd+84 zrireO2zbpr4szZ5smT87STWqC3Tl37We/pu2tQUJZbijERDLeai4kQAK41gLQEEAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201114001736epcms2p258c17155d29874c028e3cafcbcb0ee6e References: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org max_payload is unused. Signed-off-by: Bongsu Jeon --- drivers/nfc/s3fwrn5/core.c | 3 +-- drivers/nfc/s3fwrn5/i2c.c | 4 +--- drivers/nfc/s3fwrn5/s3fwrn5.h | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) -- diff --git a/drivers/nfc/s3fwrn5/core.c b/drivers/nfc/s3fwrn5/core.c index ba6c486d6465..f8e5d78d9078 100644 --- a/drivers/nfc/s3fwrn5/core.c +++ b/drivers/nfc/s3fwrn5/core.c @@ -136,7 +136,7 @@ static struct nci_ops s3fwrn5_nci_ops = { }; int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev, - const struct s3fwrn5_phy_ops *phy_ops, unsigned int max_payload) + const struct s3fwrn5_phy_ops *phy_ops) { struct s3fwrn5_info *info; int ret; @@ -148,7 +148,6 @@ int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev, info->phy_id = phy_id; info->pdev = pdev; info->phy_ops = phy_ops; - info->max_payload = max_payload; mutex_init(&info->mutex); s3fwrn5_set_mode(info, S3FWRN5_MODE_COLD); diff --git a/drivers/nfc/s3fwrn5/i2c.c b/drivers/nfc/s3fwrn5/i2c.c index dc995286be84..0ffa389066a0 100644 --- a/drivers/nfc/s3fwrn5/i2c.c +++ b/drivers/nfc/s3fwrn5/i2c.c @@ -19,7 +19,6 @@ #define S3FWRN5_I2C_DRIVER_NAME "s3fwrn5_i2c" -#define S3FWRN5_I2C_MAX_PAYLOAD 32 #define S3FWRN5_EN_WAIT_TIME 150 struct s3fwrn5_i2c_phy { @@ -248,8 +247,7 @@ static int s3fwrn5_i2c_probe(struct i2c_client *client, if (ret < 0) return ret; - ret = s3fwrn5_probe(&phy->ndev, phy, &phy->i2c_dev->dev, &i2c_phy_ops, - S3FWRN5_I2C_MAX_PAYLOAD); + ret = s3fwrn5_probe(&phy->ndev, phy, &phy->i2c_dev->dev, &i2c_phy_ops); if (ret < 0) return ret; diff --git a/drivers/nfc/s3fwrn5/s3fwrn5.h b/drivers/nfc/s3fwrn5/s3fwrn5.h index ede68bb5eeae..9d5f34759225 100644 --- a/drivers/nfc/s3fwrn5/s3fwrn5.h +++ b/drivers/nfc/s3fwrn5/s3fwrn5.h @@ -34,7 +34,6 @@ struct s3fwrn5_info { struct device *pdev; const struct s3fwrn5_phy_ops *phy_ops; - unsigned int max_payload; struct s3fwrn5_fw_info fw_info; @@ -79,7 +78,7 @@ static inline int s3fwrn5_write(struct s3fwrn5_info *info, struct sk_buff *skb) } int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev, - const struct s3fwrn5_phy_ops *phy_ops, unsigned int max_payload); + const struct s3fwrn5_phy_ops *phy_ops); void s3fwrn5_remove(struct nci_dev *ndev); int s3fwrn5_recv_frame(struct nci_dev *ndev, struct sk_buff *skb, From patchwork Sat Nov 14 00:19:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bongsu Jeon X-Patchwork-Id: 11905179 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0D39C4742C for ; Sat, 14 Nov 2020 00:19:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 70EE92224D for ; Sat, 14 Nov 2020 00:19:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="dJEgxxT7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726200AbgKNATZ (ORCPT ); Fri, 13 Nov 2020 19:19:25 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:11051 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbgKNATZ (ORCPT ); Fri, 13 Nov 2020 19:19:25 -0500 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20201114001922epoutp047aef755294f7e626fca2b75837c4daf1~HN9DlT8vL0425904259epoutp04M for ; Sat, 14 Nov 2020 00:19:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20201114001922epoutp047aef755294f7e626fca2b75837c4daf1~HN9DlT8vL0425904259epoutp04M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1605313162; bh=zs/00+691ryveI0MxspXLZ7OB7KyPJVjO4HgU7wBAjs=; h=Subject:Reply-To:From:To:CC:Date:References:From; b=dJEgxxT7h2vPKa/MNCtZtf4csI9bOLBuCxNK+cZ1VDWFoKbCijXSa42ObNw4D4/p2 sr4Y95tLYNOcxBn9vXr4SqLmqlSxaP1aQximSI++cYq0q0Mg4pdADHDeShdUKrxOpn cCGEK+NZrNUpRDSfa+jDOSJ9C15+iI0pBuEC8b+o= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20201114001921epcas2p323fa28493da773eccc123782917792e6~HN9C8KICW2671726717epcas2p38; Sat, 14 Nov 2020 00:19:21 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.40.182]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4CXwtw2sbFzMqYkY; Sat, 14 Nov 2020 00:19:20 +0000 (GMT) X-AuditID: b6c32a47-715ff7000000d2c4-a5-5faf2288d5cc Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 95.D4.53956.8822FAF5; Sat, 14 Nov 2020 09:19:20 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH net-next 2/3] nfc: s3fwrn5: Fix the misspelling in a comment Reply-To: bongsu.jeon@samsung.com Sender: Bongsu Jeon From: Bongsu Jeon To: "kuba@kernel.org" , "krzk@kernel.org" , Krzysztof Opasiak CC: "netdev@vger.kernel.org" X-Priority: 3 X-Content-Kind-Code: NORMAL X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20201114001920epcms2p78585234d9079f03673efdab2dc817548@epcms2p7> Date: Sat, 14 Nov 2020 09:19:20 +0900 X-CMS-MailID: 20201114001920epcms2p78585234d9079f03673efdab2dc817548 X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrIKsWRmVeSWpSXmKPExsWy7bCmuW6H0vp4g4P7RCy2N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afnWkx//7jD+s/7+uv45yd95j7lX cX3YsCem9fmtyKuzygTSVR+LNr54XLkixbGvx0Cda8FVJZbijERDLeai4kQAhNFEwQQEAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201114001920epcms2p78585234d9079f03673efdab2dc817548 References: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Signed-off-by: Bongsu Jeon --- drivers/nfc/s3fwrn5/firmware.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- diff --git a/drivers/nfc/s3fwrn5/firmware.c b/drivers/nfc/s3fwrn5/firmware.c index ec930ee2c847..4cde6dd5c019 100644 --- a/drivers/nfc/s3fwrn5/firmware.c +++ b/drivers/nfc/s3fwrn5/firmware.c @@ -266,7 +266,7 @@ static int s3fwrn5_fw_complete_update_mode(struct s3fwrn5_fw_info *fw_info) } /* - * Firmware header stucture: + * Firmware header structure: * * 0x00 - 0x0B : Date and time string (w/o NUL termination) * 0x10 - 0x13 : Firmware version From patchwork Sat Nov 14 00:21:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bongsu Jeon X-Patchwork-Id: 11905183 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECD7AC55ABD for ; Sat, 14 Nov 2020 00:21:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AF00722252 for ; Sat, 14 Nov 2020 00:21:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="nymbtww4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726198AbgKNAVn (ORCPT ); Fri, 13 Nov 2020 19:21:43 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:11451 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbgKNAVm (ORCPT ); Fri, 13 Nov 2020 19:21:42 -0500 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20201114002139epoutp0483f4c953927a92dc3b7c0258199e76e8~HN-C5-lmJ1132811328epoutp04R for ; Sat, 14 Nov 2020 00:21:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20201114002139epoutp0483f4c953927a92dc3b7c0258199e76e8~HN-C5-lmJ1132811328epoutp04R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1605313299; bh=KyL2hCGgsFaiWlEtKaeh3s+jfB7E11LNfY3tqcbJ/nc=; h=Subject:Reply-To:From:To:CC:Date:References:From; b=nymbtww4fCKVQE9HHsvhXLb5Hhkyj+kMQSzrZvZqUFVeWF69bPkWg66OfUm7Lr1RV L8dTalsqaYTA42kmM2uJsWzRdQ2zI//iNWe7yz2lAPVm/wu96Nygt0NrH+lvhbWdGV wTYJDj2+rg71Eddv2CDs4P8iUvfkPCVw8ch8dQzg= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20201114002138epcas2p2bf1d93fa9f74fda66f0b23e3df292e7f~HN-B-tcU83081430814epcas2p2P; Sat, 14 Nov 2020 00:21:38 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.40.186]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4CXwxX70FtzMqYkY; Sat, 14 Nov 2020 00:21:36 +0000 (GMT) X-AuditID: b6c32a48-4f9ff7000000cd1f-6b-5faf230ed2ca Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 66.51.52511.E032FAF5; Sat, 14 Nov 2020 09:21:34 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH net-next 3/3] nfc: s3fwrn5: Change the error code. Reply-To: bongsu.jeon@samsung.com Sender: Bongsu Jeon From: Bongsu Jeon To: "kuba@kernel.org" , "krzk@kernel.org" , Krzysztof Opasiak CC: "netdev@vger.kernel.org" X-Priority: 3 X-Content-Kind-Code: NORMAL X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20201114002134epcms2p1b504111777f3b1be7a0d1706882a5237@epcms2p1> Date: Sat, 14 Nov 2020 09:21:34 +0900 X-CMS-MailID: 20201114002134epcms2p1b504111777f3b1be7a0d1706882a5237 X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLKsWRmVeSWpSXmKPExsWy7bCmhS6f8vp4g2vTzCxuT5zGZnH+/AZ2 iwvb+lgtji0Qc2Dx2LSqk82jb8sqRo/Pm+QCmKNybDJSE1NSixRS85LzUzLz0m2VvIPjneNN zQwMdQ0tLcyVFPISc1NtlVx8AnTdMnOAlikplCXmlAKFAhKLi5X07WyK8ktLUhUy8otLbJVS C1JyCgwNC/SKE3OLS/PS9ZLzc60MDQyMTIEqE3Iy9h6awFSwhKdi5rxLzA2My7i6GDk5JARM JE58n8vaxcjFISSwg1FiQusbpi5GDg5eAUGJvzuEQWqEBZwkPv3aywhiCwkoSvzvOMcGEdeV ePH3KJjNJqAtsfZoIxOILSJQKXFg0XGwemYBU4lnp9+yQOzilZjR/hTKlpbYvnwrI4StIfFj WS8zhC0qcXP1W3YY+/2x+VA1IhKt985C1QhKPPi5GyouKfF23zx2kPslBNoZJc7//MEG4cxg lDi1+S9Uh77E4nMrwK7jFfCVmLtkB9gGFgFViW3zlrBC1LhI7F9znxXianmJ7W/nMIMCgllA U2L9Ln0QU0JAWeLILRaICj6JjsN/2WH+2jHvCROErSrR2/yFCebHybNbGCFaPSRWb2CBBGGg xM3bCxknMCrMQgT0LCRrZyGsXcDIvIpRLLWgODc9tdiowAQ5bjcxgtOdlscOxtlvP+gdYmTi YDzEKMHBrCTCq+ywJl6INyWxsiq1KD++qDQntfgQoynQwxOZpUST84EJN68k3tDUyMzMwNLU wtTMyEJJnDd0ZV+8kEB6YklqdmpqQWoRTB8TB6dUA5MKs/OJ4quHTd8F/mtlZ5Z7kKpd2WTH 5fPRYLt8J88cZiExHa0Hd/Ye8pBfd5onZDFXfeFj7eiQ+uchK4QDsrYE1v9MPXRs4bt/ZovE mrYb/GGVr2DwVYgL9P2SFvjC2umzr98dZdk9Jq36VbcsHz7xWN5SGS91asoDSza23K+Sjv2N b472Hwx/cfumkTGz6+mjazw/OiTuZVpxmOOM1MWjIeWZ6Ws3td4LbfhSb5I8w/3getP+J7zB r5/v+1J6g2XWWr55Gj89XJ5+ns2i4XS68C/jbBdJfY3oaXMmT/34nvesaU++4Y+AqzLa7uVS kbJNb6/senOK4XtNisOnJw23D/KudJnP8qLZ5+DlK0osxRmJhlrMRcWJAPHvXEMABAAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201114002134epcms2p1b504111777f3b1be7a0d1706882a5237 References: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP. Signed-off-by: Bongsu Jeon --- drivers/nfc/s3fwrn5/s3fwrn5.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- diff --git a/drivers/nfc/s3fwrn5/s3fwrn5.h b/drivers/nfc/s3fwrn5/s3fwrn5.h index 9d5f34759225..bb8f936d13a2 100644 --- a/drivers/nfc/s3fwrn5/s3fwrn5.h +++ b/drivers/nfc/s3fwrn5/s3fwrn5.h @@ -44,7 +44,7 @@ static inline int s3fwrn5_set_mode(struct s3fwrn5_info *info, enum s3fwrn5_mode mode) { if (!info->phy_ops->set_mode) - return -ENOTSUPP; + return -EOPNOTSUPP; info->phy_ops->set_mode(info->phy_id, mode); @@ -54,7 +54,7 @@ static inline int s3fwrn5_set_mode(struct s3fwrn5_info *info, static inline enum s3fwrn5_mode s3fwrn5_get_mode(struct s3fwrn5_info *info) { if (!info->phy_ops->get_mode) - return -ENOTSUPP; + return -EOPNOTSUPP; return info->phy_ops->get_mode(info->phy_id); } @@ -62,7 +62,7 @@ static inline enum s3fwrn5_mode s3fwrn5_get_mode(struct s3fwrn5_info *info) static inline int s3fwrn5_set_wake(struct s3fwrn5_info *info, bool wake) { if (!info->phy_ops->set_wake) - return -ENOTSUPP; + return -EOPNOTSUPP; info->phy_ops->set_wake(info->phy_id, wake); @@ -72,7 +72,7 @@ static inline int s3fwrn5_set_wake(struct s3fwrn5_info *info, bool wake) static inline int s3fwrn5_write(struct s3fwrn5_info *info, struct sk_buff *skb) { if (!info->phy_ops->write) - return -ENOTSUPP; + return -EOPNOTSUPP; return info->phy_ops->write(info->phy_id, skb); }