Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2809524pxb; Sun, 15 Nov 2020 19:08:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwa+GAVBeGPRDkW9BL/89etzi8D7P7RB93k0rlmerHp1V1B0yWec5VixWnv8e0ncoZaMPb X-Received: by 2002:a50:fe14:: with SMTP id f20mr13145640edt.61.1605496085627; Sun, 15 Nov 2020 19:08:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605496085; cv=none; d=google.com; s=arc-20160816; b=FT5aSf/HUR5OuC1v9JujwtJxmVi2hsuVC4b74xbg+Vk/+GJWj1/XdGSRGlqLm20Q8z 86mesovBmzWT/rK69DE2dhCg7uJgSULwqLDS10osXCxW0eKPvPhE+mJ07J3MR1R31PUc iNSsETMbNh84J0b1ZKZhnROimwS78gtz/iPf7HpVtM1wmeexXlA3eZOtHesKXE7lPDrQ 8kVQ+aECMD1vV4M5ArKecIVigWlN3QscsJLRd3CX2bi4AxTUtj96V8WeSPxHriSjKl/H nCghwzH9fJ/hYNwCjxzFCGgNNjTjNjScn2uhbKkRB7uXlT6KuLisykX9phF8SI3mTNnK TAbw== 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=JHbfhQmZY2Kdf9uCqVWWi/pKiuSfpP7K0ZJj50SZUM0=; b=awyS0REjsBQOwtMhDSHvehSkKLqnYceXw0qQ9gMik338JxqT9aMiv/ixv+RpIUDqmt IeTZo23luxx9/AOCFD585ppJEDHt0fxXTSBzf7tSfEIq+lbeUnlPvDEnn8DtAA9tuyZD ntoTqCy2Xa1OMHTVIbTCajQK44vQhF/ELrS+7GgMQjxRUa3AOt/OdaNXbeFu0Qe/WnIi s1OZzNfFALto6RO+5wTHbYySlL7MLTi4D7h7R4SMySwCemDOLf4f87JsgOVlDpF9g6Pq batEowwU6WhCvI91FIbMjN5TxnKkWQM64rT6j+RtGx7VdAei0ccKX34WTb+qgm7AOsCS mQbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Sj7Bqonb; 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 b17si11660479edw.47.2020.11.15.19.07.43; Sun, 15 Nov 2020 19:08:05 -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=Sj7Bqonb; 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 S1728102AbgKPBMM (ORCPT + 99 others); Sun, 15 Nov 2020 20:12:12 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:35045 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727901AbgKPBMM (ORCPT ); Sun, 15 Nov 2020 20:12:12 -0500 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20201116011209epoutp02458ea2856caf11c01e962b4c1b4d9aa0~H19tz0LxS2157621576epoutp02K for ; Mon, 16 Nov 2020 01:12:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20201116011209epoutp02458ea2856caf11c01e962b4c1b4d9aa0~H19tz0LxS2157621576epoutp02K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1605489129; bh=JHbfhQmZY2Kdf9uCqVWWi/pKiuSfpP7K0ZJj50SZUM0=; h=Subject:Reply-To:From:To:CC:Date:References:From; b=Sj7BqonbIBGAHQz2fHC7z7K6ep1nqPfCwRcej9eg8I3IyTNfq3231KzP8VHZ6XKMx METiEXeFSOidMeLvIcuecRAwzssjKj6xSeIFH7fTJx5HcT1r693OrTssrwSIXyrHZb ldU7AVV3niBWHe/tE6jKWXrsq5AAb3osmwBVVokk= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20201116011209epcas2p1a3b5e55645a2cc736315a93e787cac5a~H19terjmG1868518685epcas2p1g; Mon, 16 Nov 2020 01:12:09 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.40.186]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4CZ9yv6qqDzMqYkb; Mon, 16 Nov 2020 01:12:07 +0000 (GMT) X-AuditID: b6c32a45-34dff7000001297d-aa-5fb1d1e5d539 Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id DE.16.10621.5E1D1BF5; Mon, 16 Nov 2020 10:12:05 +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: "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: <20201116011205epcms2p566dbc946d6c7a0198d09b3a872e85f33@epcms2p5> Date: Mon, 16 Nov 2020 10:12:05 +0900 X-CMS-MailID: 20201116011205epcms2p566dbc946d6c7a0198d09b3a872e85f33 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDKsWRmVeSWpSXmKPExsWy7bCmhe7TixvjDbZsMbPY0jyJ3eL2xGls FufPb2C3uLxrDpvFnA2b2S2OLRBzYPPYtKqTzaN79j8Wj74tqxg9Pm+SC2CJyrHJSE1MSS1S SM1Lzk/JzEu3VfIOjneONzUzMNQ1tLQwV1LIS8xNtVVy8QnQdcvMAdqtpFCWmFMKFApILC5W 0rezKcovLUlVyMgvLrFVSi1IySkwNCzQK07MLS7NS9dLzs+1MjQwMDIFqkzIyeiY2cBUcEK4 4v2NtYwNjBsFuhg5OSQETCRmn5zH3MXIxSEksINRovvlCvYuRg4OXgFBib87hEFqhAWcJKbe ucYCYgsJKEr87zjHBhHXlXjx9yiYzSagLbH2aCMTSKuIQIjEx75akJHMAqsZJTp/djJD7OKV mNH+lAXClpbYvnwrI4StIfFjWS9UjajEzdVv2WHs98fmQ9WISLTeOwtVIyjx4OduqLikxNt9 89hBlkkItDNKnP/5gw3CmcEocWrzX6gOfYnF51YwQTzmK3HxUBFImEVAVaJ/w0SoEheJKdv/ gC1mFpCX2P52DjNIObOApsT6XfogpoSAssSRWywQFXwSHYf/ssO8tWPeEyYIW1Wit/kLE8yL k2e3QJ3pIfF81342SBAGSry8cJdtAqPCLERAz0KydxbC3gWMzKsYxVILinPTU4uNCgyR43YT IzgZarnuYJz89oPeIUYmDsZDjBIczEoivC4mG+OFeFMSK6tSi/Lji0pzUosPMZoCfTyRWUo0 OR+YjvNK4g1NjczMDCxNLUzNjCyUxHlDV/bFCwmkJ5akZqemFqQWwfQxcXBKNTCtCtjEz8Zz YOKTB0frc45tmbXzrMZOORuz9SXsxdmXGnTvif7N4L90ktHVMqesLi+xk1vr+cz/CVtP+x5Z 7NFZ/SvB135+zXLT/3kxlg3C8RMnfc9+52AZ+8no1lyeqBx9G6OAc68XTuxS7AzUPrMr0tFF 6J75vdeXau1y9j6bX3lyK89UTl593uhTy+TmVTxuXXv50rWk3UyVHyYtXdmhMj910gaWBQlC +q5ap55eebbf83DcoVt90+Uq9s8r83WL2Nq0ddK2qa6l27k8a/02/lQ6PZcvYqbqkWR/fodZ zxef+K/Ls5T/Uds12zfLy1oKT7c3PFrnVH7PcGVj2Xv+mSkSrB2O8RpKv86zfluixFKckWio xVxUnAgAMtbRag8EAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20201116011205epcms2p566dbc946d6c7a0198d09b3a872e85f33 References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.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, -- 2.17.1