summaryrefslogtreecommitdiffstats
path: root/net/nfc/hci/hci.h
diff options
context:
space:
mode:
authorEric Lapuyade <eric.lapuyade@intel.com>2012-05-03 15:35:25 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-07-09 16:42:07 -0400
commit6c1c5b9e1d8a25268a607c762576b5c16e3e7230 (patch)
tree83508c5809fed818875d51edf8db083a111b6ec2 /net/nfc/hci/hci.h
parent72b06f75fea45fa861f2e137bc94e56aab306c4b (diff)
downloadop-kernel-dev-6c1c5b9e1d8a25268a607c762576b5c16e3e7230.zip
op-kernel-dev-6c1c5b9e1d8a25268a607c762576b5c16e3e7230.tar.gz
NFC: Changed HCI cmd execution completion result to std linux errno
An HCI command can complete either from an HCI response (with an HCI result) or as a consequence of any other system error during processing. The completion therefore needs to take a standard errno code. The HCI response will convert its result to a standard errno before calling the completion. Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/hci/hci.h')
-rw-r--r--net/nfc/hci/hci.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/nfc/hci/hci.h b/net/nfc/hci/hci.h
index 45f2fe4..d3cde07 100644
--- a/net/nfc/hci/hci.h
+++ b/net/nfc/hci/hci.h
@@ -37,10 +37,11 @@ struct hcp_packet {
/*
* HCI command execution completion callback.
- * result will be one of the HCI response codes.
- * skb contains the response data and must be disposed.
+ * result will be a standard linux error (may be converted from HCI response)
+ * skb contains the response data and must be disposed, or may be NULL if
+ * an error occured
*/
-typedef void (*hci_cmd_cb_t) (struct nfc_hci_dev *hdev, u8 result,
+typedef void (*hci_cmd_cb_t) (struct nfc_hci_dev *hdev, int result,
struct sk_buff *skb, void *cb_data);
struct hcp_exec_waiter {
OpenPOWER on IntegriCloud