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)
commit1e37be7d27d086ca72c38af14a9783eb9d7e9fa9
tree3939db915c22bbabb562fd07098289ec93f8c591
parentd73cfd4283d9090b45337a93dddc43848039f14b
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: c656aa4c27b1 ("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