OpenCloudOS-Kernel/drivers/nfc
Geert Uytterhoeven 4360fa22ad drivers: misc: ti-st: Use int instead of fuzzy char for callback status
On mips and parisc:

    drivers/bluetooth/btwilink.c: In function 'ti_st_open':
    drivers/bluetooth/btwilink.c:174:21: warning: overflow in implicit constant conversion [-Woverflow]
       hst->reg_status = -EINPROGRESS;

    drivers/nfc/nfcwilink.c: In function 'nfcwilink_open':
    drivers/nfc/nfcwilink.c:396:31: warning: overflow in implicit constant conversion [-Woverflow]
      drv->st_register_cb_status = -EINPROGRESS;

There are actually two issues:
  1. Whether "char" is signed or unsigned depends on the architecture.
     As the completion callback data is used to pass a (negative) error
     code, it should always be signed.
  2. EINPROGRESS is 150 on mips, 245 on parisc.
     Hence -EINPROGRESS doesn't fit in a signed 8-bit number.

Change the callback status from "char" to "int" to fix these.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2016-07-17 19:59:26 +02:00
..
fdp nfc: nci: Add an additional parameter to identify a connection id 2016-05-04 01:43:21 +02:00
microread NFC: microread: Drop platform data header file 2016-03-09 23:25:45 +01:00
nfcmrvl NFC: nfcmrvl: avoid being stuck on FW dnld timeout 2015-11-05 00:32:25 +01:00
nxp-nci nfc: Drop owner assignment from i2c_driver 2016-05-01 23:38:14 +02:00
pn533 NFC: pn533: handle interrupted commands in pn533_recv_frame 2016-05-10 00:01:47 +02:00
pn544 nfc: Drop owner assignment from i2c_driver 2016-05-01 23:38:14 +02:00
s3fwrn5 nfc: s3fwrn5: Use shash 2016-01-27 20:36:09 +08:00
st-nci nfc: st-nci: Move loopback usage from HCI to NCI 2016-05-04 01:51:42 +02:00
st21nfca nfc: st21nfca: Remove duplicated ST21NFCA_ESE_HOST_ID from se.c 2016-05-04 01:40:28 +02:00
st95hf NFC: st95hf: Fix build error 2015-12-29 19:06:12 +01:00
Kconfig NFC: pn533: Separate physical layer from the core implementation 2016-04-09 23:53:15 +02:00
Makefile NFC: pn533: Separate physical layer from the core implementation 2016-04-09 23:53:15 +02:00
mei_phy.c mei: bus: use mei_cldev_ prefix for the API functions 2015-09-20 19:31:10 -07:00
mei_phy.h mei: bus: complete variable rename of type struct mei_cl_device 2015-09-20 19:31:09 -07:00
nfcsim.c NFC: add rx delay sysfs parameter for nfcsim workqueue 2015-12-21 00:07:27 +01:00
nfcwilink.c drivers: misc: ti-st: Use int instead of fuzzy char for callback status 2016-07-17 19:59:26 +02:00
port100.c NFC: logging neatening 2015-04-07 12:05:12 +02:00
trf7970a.c NFC: trf7970a: use to_spi_device 2015-12-29 19:06:12 +01:00