]> 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)
commitcad50fbf5e85ba3143f2a7d651e988b983a339f6
tree3939db915c22bbabb562fd07098289ec93f8c591
parentcab1f57e7f404f9d40563690fa2f63b3620840e8
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: 28f683dec7aa ("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