linux/drivers/nfc
Krzysztof Kozlowski 24071f8ddb nfc: s3fwrn5: use signed integer for parsing GPIO numbers
[ Upstream commit d8f0a86795 ]

GPIOs - as returned by of_get_named_gpio() and used by the gpiolib - are
signed integers, where negative number indicates error.  The return
value of of_get_named_gpio() should not be assigned to an unsigned int
because in case of !CONFIG_GPIOLIB such number would be a valid GPIO.

Fixes: c04c674fad ("nfc: s3fwrn5: Add driver for Samsung S3FWRN5 NFC Chip")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201123162351.209100-1-krzk@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-02 08:48:11 +01:00
..
fdp NFC: fdp: Fix a signedness bug in fdp_nci_send_patch() 2020-04-02 15:28:12 +02:00
microread nfc: microread: constify i2c_device_id 2017-11-06 00:56:55 +01:00
nfcmrvl NFC: nfcmrvl: fix gpio-handling regression 2019-08-09 17:52:33 +02:00
nxp-nci NFC: nxp-nci: Fix NULL pointer dereference after I2C communication error 2019-12-13 08:51:03 +01:00
pn533 NFC: pn533: fix bulk-message timeout 2020-01-23 08:21:34 +01:00
pn544 nfc: pn544: Fix occasional HW initialization failure 2020-03-05 16:42:16 +01:00
s3fwrn5 nfc: s3fwrn5: use signed integer for parsing GPIO numbers 2020-12-02 08:48:11 +01:00
st-nci st_nci_hci_connectivity_event_received: null check the allocation 2019-08-29 08:28:31 +02:00
st21nfca NFC: st21nfca: add missed kfree_skb() in an error path 2020-06-10 21:34:59 +02:00
st95hf NFC: st95hf: Fix memleak in st95hf_in_send_cmd 2020-09-17 13:45:24 +02:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mei_phy.c
mei_phy.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nfcsim.c
port100.c NFC: port100: Convert cpu_to_le16(le16_to_cpu(E1) + E2) to use le16_add_cpu(). 2020-02-24 08:34:40 +01:00
trf7970a.c