From patchwork Tue Nov 17 01:17:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bongsu Jeon X-Patchwork-Id: 11911119 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=unavailable 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 5DC15C388F9 for ; Tue, 17 Nov 2020 01:18:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1151524686 for ; Tue, 17 Nov 2020 01:18:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="fRdz+HMw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730713AbgKQBRt (ORCPT ); Mon, 16 Nov 2020 20:17:49 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:33738 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726238AbgKQBRs (ORCPT ); Mon, 16 Nov 2020 20:17:48 -0500 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20201117011745epoutp018c675a712487876a02b18d92fd8e4f2f~IJr47Jy1k1693616936epoutp01F for ; Tue, 17 Nov 2020 01:17:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20201117011745epoutp018c675a712487876a02b18d92fd8e4f2f~IJr47Jy1k1693616936epoutp01F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1605575865; bh=TfUkL+lDZElGHDBaFwcjW6Ej9dQR2j3RjB2y/gxXwDA=; h=Subject:Reply-To:From:To:CC:Date:References:From; b=fRdz+HMw7n+A8HzH4lFSJfuKC+UaXcCuPzlBi5olUrWfmcju9Id2oq4vJkgblWlIG rcIjiGj7NwBgmgOynAzBG5sd/68wAEr1zSLxtrwyDbXwMmhVHc5XS/a8xdMj3zAMBF OgIoMrCK0c62Dsy2qA39zQ3Wr7w6SrUyJIGerLCg= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20201117011745epcas2p139a0e98e2883479d652d0d66c0bfbc43~IJr4qWAlA2992829928epcas2p1U; Tue, 17 Nov 2020 01:17:45 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.40.184]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4CZp2v6KsJzMqYkg; Tue, 17 Nov 2020 01:17:43 +0000 (GMT) X-AuditID: b6c32a47-715ff7000000d2c4-c2-5fb324b7d76f Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 9C.D9.53956.7B423BF5; Tue, 17 Nov 2020 10:17:43 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH net-next v2 2/3] nfc: s3fwrn5: Fix the misspelling in a comment Reply-To: bongsu.jeon@samsung.com Sender: Bongsu Jeon From: Bongsu Jeon To: "krzk@kernel.org" , Krzysztof Opasiak CC: "linux-nfc@lists.01.org" , "netdev@vger.kernel.org" , "linux-kernel@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: <20201117011742epcms2p1fb85ba231b3a1673d97af4bc1479744f@epcms2p1> Date: Tue, 17 Nov 2020 10:17:42 +0900 X-CMS-MailID: 20201117011742epcms2p1fb85ba231b3a1673d97af4bc1479744f X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNKsWRmVeSWpSXmKPExsWy7bCmhe52lc3xBk0f5S22NE9it7g9cRqb xfnzG9gtLu+aw2YxZ8NmdotjC8Qc2Dw2repk8+ie/Y/Fo2/LKkaPz5vkAliicmwyUhNTUosU UvOS81My89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgHYrKZQl5pQChQISi4uV 9O1sivJLS1IVMvKLS2yVUgtScgoMDQv0ihNzi0vz0vWS83OtDA0MjEyBKhNyMo6uPM5UsJy1 omf3BbYGxi0sXYycHBICJhL93ZsZuxi5OIQEdjBK3P++ASjBwcErICjxd4cwiCksECjxqTsI pFxIQFHif8c5NhBbWEBX4sXfo2A2m4C2xNqjjUwg5SICIRIf+2pBJjILrGaU6PzZyQyxildi RvtTqLXSEtuXb2WEsDUkfizrhaoRlbi5+i07jP3+2HyoGhGJ1ntnoWoEJR783A0Vl5R4u28e O8gyCYF2RonzP3+wQTgzGCVObf4L1aEvsfjcCiaIv3wlzrx3AQmzCKhK9By4wQRR4iLRuXUl 2DPMAvIS29/OYQYpZxbQlFi/Sx/ElBBQljhyiwWigk+i4/Bfdpi3dsx7AjVFVaK3+QsTzIuT Z7dAnekhcfbIFzZIEAZK3F1wiGkCo8IsRDjPQrJ3FsLeBYzMqxjFUguKc9NTi40KjJGjdhMj OBVque9gnPH2g94hRiYOxkOMEhzMSiK8LiYb44V4UxIrq1KL8uOLSnNSiw8xmgJ9PJFZSjQ5 H5iM80riDU2NzMwMLE0tTM2MLJTEeUNX9sULCaQnlqRmp6YWpBbB9DFxcEo1MFV0uapIn73I 131OfxbPOaZJT237Us7UbMwtXZTmNedecZhi/bejv8JufpHxUDj69aWjyObFt097bp7+vPns f/XHZ/bLvTBcm+n/Z+51+f/5+Yd/bDsU8tU37m+i7fPJCw7Kbqq+yFEyy5tPqijHMjD12576 B6dvzi1lldg4synP4tb9HlWbN7KV1n5r3G975QUvnrjti13C8onL289dst0gdCHvE/th2Q3V bXKP1Y8JCYtO1nkaPTuKya45ruXP9A11Jya+95pW7J8/k0+rm72l1t7IZrbihpJnO6zqWSev t60wPGFuo8B+OEzSvOmXQFdALS+v3cljzS99mJbFMMuf2nLwxIlzL0/uK0+L2avEUpyRaKjF XFScCACdZZekDgQAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201117011742epcms2p1fb85ba231b3a1673d97af4bc1479744f References: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org stucture should be replaced by structure. Signed-off-by: Bongsu Jeon Reviewed-by: Krzysztof Kozlowski --- 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 Tue Nov 17 01:18:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bongsu Jeon X-Patchwork-Id: 11911123 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 584E1C388F9 for ; Tue, 17 Nov 2020 01:19:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0803C2468B for ; Tue, 17 Nov 2020 01:19:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="dIABx3ZA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731427AbgKQBS5 (ORCPT ); Mon, 16 Nov 2020 20:18:57 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:27458 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726321AbgKQBS4 (ORCPT ); Mon, 16 Nov 2020 20:18:56 -0500 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20201117011853epoutp02ceec38b8b674522609d2cf7e85c5a18e~IJs4btEuH1574115741epoutp026 for ; Tue, 17 Nov 2020 01:18:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20201117011853epoutp02ceec38b8b674522609d2cf7e85c5a18e~IJs4btEuH1574115741epoutp026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1605575933; bh=HH/NqwyXdWOgWXZb8phOo0tVJ5pPS37tojmhBry9IvY=; h=Subject:Reply-To:From:To:CC:Date:References:From; b=dIABx3ZAVyQqIVCFRLvyTCBEo1AQYREtSbgbHKV2aeDAZKdpM4eK+TChezUI12uDu BVa/HQ6jFuTuHX0anXXgu3hYidWF2VqUOPa2/RovsgiGzobAHWAoJaDntu5iJWWKcW CxarGIcr8wvpv0gAyKprowK9u6/YS2dWKQaNGfT0= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20201117011853epcas2p1054586c2198805cb91d5cd0fcbe745ab~IJs38VKQD0664006640epcas2p1J; Tue, 17 Nov 2020 01:18:53 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.181]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4CZp4D1HD7zMqYks; Tue, 17 Nov 2020 01:18:52 +0000 (GMT) X-AuditID: b6c32a46-1d9ff7000000dbf8-d9-5fb324fa09cf Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 20.04.56312.AF423BF5; Tue, 17 Nov 2020 10:18:50 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH net-next v2 3/3] nfc: s3fwrn5: Change the error code Reply-To: bongsu.jeon@samsung.com Sender: Bongsu Jeon From: Bongsu Jeon To: "krzk@kernel.org" , Krzysztof Opasiak CC: "linux-nfc@lists.01.org" , "netdev@vger.kernel.org" , "linux-kernel@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: <20201117011850epcms2p568af074144630cd0f02b3a7f7eff8d1a@epcms2p5> Date: Tue, 17 Nov 2020 10:18:50 +0900 X-CMS-MailID: 20201117011850epcms2p568af074144630cd0f02b3a7f7eff8d1a X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOJsWRmVeSWpSXmKPExsWy7bCmme4vlc3xBku7dCy2NE9it7g9cRqb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tn56dUdU UcfkT/N09X9WSLzp3PRC6kvu15D/R6azftuxeLJ+Yf8s9/Qz7M0tit/1bh6MXZb3n2+e7ZEd M+fL6+XO8m4quyJV80z5UtPDH8YbpyixFGckGmoxFxUnAgB3Oy1zagQAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201117011850epcms2p568af074144630cd0f02b3a7f7eff8d1a 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 Reviewed-by: Krzysztof Kozlowski --- 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); }