]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: pn533: pn533_phy_ops dev_[up, down] return int
authorLars Poeschel <poeschel@lemonage.de>
Wed, 13 Nov 2019 13:50:22 +0000 (14:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Nov 2019 20:15:03 +0000 (12:15 -0800)
commit6d59d1b71569c0134eb96332eecd509f9a5099b4
tree3939db915c22bbabb562fd07098289ec93f8c591
parent959e9e1994d442752b8df297c05bcb182d9c6c8d
nfc: pn533: pn533_phy_ops dev_[up, down] return int

Change dev_up and dev_down functions of struct pn533_phy_ops to return
int. This way the pn533 core can report errors in the phy layer to upper
layers.
The only user of this is currently uart.c and it is changed to report
the error of a possibly failing call to serdev_device_open.

Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1487395 ("Error handling issues")
Fixes: fa90af68481d ("nfc: pn533: add UART phy driver")
Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/pn533/pn533.c
drivers/nfc/pn533/pn533.h
drivers/nfc/pn533/uart.c