summaryrefslogtreecommitdiff
path: root/net/nfc/nci/lib.c
diff options
context:
space:
mode:
authorIlan Elias <ilane@ti.com>2011-11-09 10:09:14 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2011-11-11 17:32:50 (GMT)
commite8c0dacd9836dc2dcb28d236c9cc3cfaa9965a20 (patch)
treeafc78589cb1a21a25d6ef0e1ad5532451bc47838 /net/nfc/nci/lib.c
parente999882a052a2959571989b2db2b51893d23c0bb (diff)
downloadlinux-e8c0dacd9836dc2dcb28d236c9cc3cfaa9965a20.tar.xz
NFC: Update names and structs to NCI spec 1.0 d18
Addition, deletion and modification of NCI constants. Changes in NCI commands, responses and notifications structures. Signed-off-by: Ilan Elias <ilane@ti.com> Acked-by: Lauro Ramos Venancio <lauro.venancio@openbossa.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc/nci/lib.c')
-rw-r--r--net/nfc/nci/lib.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/net/nfc/nci/lib.c b/net/nfc/nci/lib.c
index b19dc2f..e99adcf 100644
--- a/net/nfc/nci/lib.c
+++ b/net/nfc/nci/lib.c
@@ -42,12 +42,9 @@ int nci_to_errno(__u8 code)
case NCI_STATUS_REJECTED:
return -EBUSY;
- case NCI_STATUS_MESSAGE_CORRUPTED:
+ case NCI_STATUS_RF_FRAME_CORRUPTED:
return -EBADMSG;
- case NCI_STATUS_BUFFER_FULL:
- return -ENOBUFS;
-
case NCI_STATUS_NOT_INITIALIZED:
return -EHOSTDOWN;
@@ -80,9 +77,6 @@ int nci_to_errno(__u8 code)
case NCI_STATUS_NFCEE_TIMEOUT_ERROR:
return -ETIMEDOUT;
- case NCI_STATUS_RF_LINK_LOSS_ERROR:
- return -ENOLINK;
-
case NCI_STATUS_MAX_ACTIVE_NFCEE_INTERFACES_REACHED:
return -EDQUOT;