Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3682998pxb; Tue, 17 Nov 2020 00:14:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhCDRJSGlgbZO05JG4bN5AfMu0NvLOk66+3MYguMF2vb/EJeAVlizYHRMFrgBS3NgRYe02 X-Received: by 2002:a05:6402:1f1:: with SMTP id i17mr19281771edy.60.1605600895929; Tue, 17 Nov 2020 00:14:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605600895; cv=none; d=google.com; s=arc-20160816; b=JHzfko/773NuoLA+b0W7LMqwM618VkhXdgeKdPss56tzQ90mQxDeg/cmoJybvF2QDf D0vDqcANwewYoAYabKVz4IqXBttTXJsv10E3DW9dylnriL5uGw7Iw1WJzR5xoEqm0su4 wGs4uJGeTN8GxJPvJmclZLQjrf2RWQQb2JnwkplikvyUx2cQX6YaRiOCI5cRTwDr87HS 3CkqtDwDK7PfyRH2KusrFsiuj9HXyp1gWbpvBECE9bgU3PZ6Bf3e1sxZWQivqV0+L9Vm 0Qt6x7lVy89z2FDNRGaMs/ZM2hesD2U2ak+qWQ/18ubOpukNpmWS8s6wWVto3M9RhM4O cfmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:cc:to:from:sender :reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=4yuXaRyIkw7lnb4zJhKZ/Mit84x8WVY+2eudUg0qOyo=; b=E7WvyTbbNjHw27abJdY3PTTRm24Yj9GL8DuzSh9oKi4g+IXKD+p8YToIbEPd0RngDz yuBq4wBLvVGIVOZ2KSW2xTs35iKU961UnvsBgt6C+5uW1VIxnX8PRyZfc3+3IwNgcnwM 5YYyX7+5ryGtqC5WSBvpMp4ljTT+9nrtP8SUjFzhggcZ6v2My81tRAa4/PzKMbf4wOAA FjZ3CmGMhQNyyX0YHAetiUSVx/s9Wi9OMNlgpXo3aBvanHmolr588r/whpwzv0aCu9U1 3CaTFnwLAP+0Ktk/q1rxx4MM9hD3CXbwfPDGxIMdLjA6f/1tNHwFc/KaKaytPnwGJl12 20YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Tgjr7HS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si13341906ejo.601.2020.11.17.00.14.32; Tue, 17 Nov 2020 00:14:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Tgjr7HS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727175AbgKQILo (ORCPT + 99 others); Tue, 17 Nov 2020 03:11:44 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:54604 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727134AbgKQILm (ORCPT ); Tue, 17 Nov 2020 03:11:42 -0500 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20201117081139epoutp030d5b4fc328c04d4534c1951b13e603ca~IPVRkMivP3021030210epoutp03A for ; Tue, 17 Nov 2020 08:11:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20201117081139epoutp030d5b4fc328c04d4534c1951b13e603ca~IPVRkMivP3021030210epoutp03A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1605600699; bh=4yuXaRyIkw7lnb4zJhKZ/Mit84x8WVY+2eudUg0qOyo=; h=Subject:Reply-To:From:To:CC:Date:References:From; b=Tgjr7HS6/g046xJBZ8GjL8WxSNUisCJHqt1vFM5jYij1TBQ+8mJW7ljMAxCy0E7bX a56iyNcM2YieEgFIZLjMS666yCEaBZzssSi5uXxJKi4TecXpolyFC91QJ/KfXvwWGg +uVz3J8xPAQBe/6STPk4Kl0vSjKz8lmO12c76iJU= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20201117081139epcas2p2db4464cd223dbb80ab733a9721e190d0~IPVRNuedG1608616086epcas2p2e; Tue, 17 Nov 2020 08:11:39 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.187]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4CZzDV1YLpzMqYkZ; Tue, 17 Nov 2020 08:11:38 +0000 (GMT) X-AuditID: b6c32a46-1efff7000000dbf8-13-5fb385b9df33 Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 67.9B.56312.9B583BF5; Tue, 17 Nov 2020 17:11:37 +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: <20201117081137epcms2p84b5dd8d84ca608f44b0bb722b48f50b1@epcms2p8> Date: Tue, 17 Nov 2020 17:11:37 +0900 X-CMS-MailID: 20201117081137epcms2p84b5dd8d84ca608f44b0bb722b48f50b1 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLKsWRmVeSWpSXmKPExsWy7bCmqe7O1s3xBos3aFtsaZ7EbnF74jQ2 i/PnN7BbXN41h81izobN7BbHFog5sHlsWtXJ5tE9+x+LR9+WVYwenzfJBbBE5dhkpCampBYp pOYl56dk5qXbKnkHxzvHm5oZGOoaWlqYKynkJeam2iq5+AToumXmAO1WUihLzCkFCgUkFhcr 6dvZFOWXlqQqZOQXl9gqpRak5BQYGhboFSfmFpfmpesl5+daGRoYGJkCVSbkZHw5vJa94BFP xbGzTxkbGG9zdTFyckgImEi8/bmEqYuRi0NIYAejxNPHh9m7GDk4eAUEJf7uEAapERZwkeh9 cpUNxBYSUJT433GODSKuK/Hi71Ewm01AW2Lt0UYmkFYRgRCJj321ICOZBVYzSnT+7GSG2MUr MaP9KQuELS2xfflWRghbQ+LHsl6oGlGJm6vfssPY74/Nh6oRkWi9dxaqRlDiwc/dUHFJibf7 5rGDLJMQaGeUOP/zBxuEM4NR4tTmv1Ad+hKLz61gArF5BXwl1r6YC7aBRUBVov35HKhtLhLX 568Hm8osIC+x/e0cZpBvmAU0Jdbv0gcxJQSUJY7cYoGo4JPoOPyXHeavHfOeMEHYqhK9zV+Y YH6cPLsF6k4Pia1fjzFDwjBQYsXnDuYJjAqzECE9C8neWQh7FzAyr2IUSy0ozk1PLTYqMEKO 3E2M4HSo5baDccrbD3qHGJk4GA8xSnAwK4nwuphsjBfiTUmsrEotyo8vKs1JLT7EaAr08URm KdHkfGBCziuJNzQ1MjMzsDS1MDUzslAS5w1d2RcvJJCeWJKanZpakFoE08fEwSnVwBT2u9Hc P09m1SHn/cxTnRnfs37YsEPnVuG8b98aLeeUCd+3O7hD7kiR9fMJKxglfbT5Jq63zkxr9fww f8WkhUEzZkbPb34xa+py02lhrkHFk/lPveZ8nW+mzabAozWnMCs1lGWWgV/ilsSwxPAl+fqq u3V+vTrqKlrh2B129f62t9Mqri58IZP7VDLz7QrHdndW35XzruTk/FhQfo7hVtU3ab71u5z8 3XmPSP+aqrT5WvG5E4/XKs3TPSYn9IqnlNW4P3n2R4/7C3YEBT2IsTj32OuimnVH8YOPpy5l /TKoX5yy7mPlkdun89bKXq9aMUl7n9H61deKNIKjp9jO7WnQYkhv1GEU79y67pfEBFUlluKM REMt5qLiRABKcRNLEAQAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201117081137epcms2p84b5dd8d84ca608f44b0bb722b48f50b1 References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP. Reviewed-by: Krzysztof Kozlowski 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); } -- 2.17.1