diff options
author | Eric Lapuyade <eric.lapuyade@intel.com> | 2012-05-03 09:35:25 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-09 16:42:07 -0400 |
commit | 6c1c5b9e1d8a25268a607c762576b5c16e3e7230 (patch) | |
tree | 83508c5809fed818875d51edf8db083a111b6ec2 /net/nfc/hci/hci.h | |
parent | 72b06f75fea45fa861f2e137bc94e56aab306c4b (diff) |
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.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/nfc/hci/hci.h b/net/nfc/hci/hci.h index 45f2fe4fd486..d3cde075ba60 100644 --- a/net/nfc/hci/hci.h +++ b/net/nfc/hci/hci.h | |||
@@ -37,10 +37,11 @@ struct hcp_packet { | |||
37 | 37 | ||
38 | /* | 38 | /* |
39 | * HCI command execution completion callback. | 39 | * HCI command execution completion callback. |
40 | * result will be one of the HCI response codes. | 40 | * result will be a standard linux error (may be converted from HCI response) |
41 | * skb contains the response data and must be disposed. | 41 | * skb contains the response data and must be disposed, or may be NULL if |
42 | * an error occured | ||
42 | */ | 43 | */ |
43 | typedef void (*hci_cmd_cb_t) (struct nfc_hci_dev *hdev, u8 result, | 44 | typedef void (*hci_cmd_cb_t) (struct nfc_hci_dev *hdev, int result, |
44 | struct sk_buff *skb, void *cb_data); | 45 | struct sk_buff *skb, void *cb_data); |
45 | 46 | ||
46 | struct hcp_exec_waiter { | 47 | struct hcp_exec_waiter { |