Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Bongsu Jeon and committed by
Jakub Kicinski
b50e2964 aa8f2cbd

+3 -7
+1 -2
drivers/nfc/s3fwrn5/core.c
··· 136 136 }; 137 137 138 138 int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev, 139 - const struct s3fwrn5_phy_ops *phy_ops, unsigned int max_payload) 139 + const struct s3fwrn5_phy_ops *phy_ops) 140 140 { 141 141 struct s3fwrn5_info *info; 142 142 int ret; ··· 148 148 info->phy_id = phy_id; 149 149 info->pdev = pdev; 150 150 info->phy_ops = phy_ops; 151 - info->max_payload = max_payload; 152 151 mutex_init(&info->mutex); 153 152 154 153 s3fwrn5_set_mode(info, S3FWRN5_MODE_COLD);
+1 -3
drivers/nfc/s3fwrn5/i2c.c
··· 19 19 20 20 #define S3FWRN5_I2C_DRIVER_NAME "s3fwrn5_i2c" 21 21 22 - #define S3FWRN5_I2C_MAX_PAYLOAD 32 23 22 #define S3FWRN5_EN_WAIT_TIME 150 24 23 25 24 struct s3fwrn5_i2c_phy { ··· 247 248 if (ret < 0) 248 249 return ret; 249 250 250 - ret = s3fwrn5_probe(&phy->ndev, phy, &phy->i2c_dev->dev, &i2c_phy_ops, 251 - S3FWRN5_I2C_MAX_PAYLOAD); 251 + ret = s3fwrn5_probe(&phy->ndev, phy, &phy->i2c_dev->dev, &i2c_phy_ops); 252 252 if (ret < 0) 253 253 return ret; 254 254
+1 -2
drivers/nfc/s3fwrn5/s3fwrn5.h
··· 34 34 struct device *pdev; 35 35 36 36 const struct s3fwrn5_phy_ops *phy_ops; 37 - unsigned int max_payload; 38 37 39 38 struct s3fwrn5_fw_info fw_info; 40 39 ··· 78 79 } 79 80 80 81 int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev, 81 - const struct s3fwrn5_phy_ops *phy_ops, unsigned int max_payload); 82 + const struct s3fwrn5_phy_ops *phy_ops); 82 83 void s3fwrn5_remove(struct nci_dev *ndev); 83 84 84 85 int s3fwrn5_recv_frame(struct nci_dev *ndev, struct sk_buff *skb,