summaryrefslogtreecommitdiff
path: root/drivers/nfc/s3fwrn5/i2c.c
diff options
context:
space:
mode:
authorBongsu Jeon <bongsu.jeon@samsung.com>2020-11-17 11:08:24 +0300
committerJakub Kicinski <kuba@kernel.org>2020-11-19 04:42:13 +0300
commitb50e29645627c9372bca45c19d040d96011f77de (patch)
tree63289da04516131c51821810ab4212ef8c5f9899 /drivers/nfc/s3fwrn5/i2c.c
parentaa8f2cbd5748114e6f283b878f65e743f528d978 (diff)
downloadlinux-b50e29645627c9372bca45c19d040d96011f77de.tar.xz
nfc: s3fwrn5: Remove the max_payload
max_payload is unused. Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Bongsu Jeon <bongsu.jeon@samsung.com> Link: https://lore.kernel.org/r/20201117080824epcms2p36f70e06e2d8bd51d1af278b26ca65725@epcms2p3 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/nfc/s3fwrn5/i2c.c')
-rw-r--r--drivers/nfc/s3fwrn5/i2c.c4
1 files changed, 1 insertions, 3 deletions
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;