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>
This commit is contained in:

committed by
John W. Linville

parent
72b06f75fe
commit
6c1c5b9e1d
@@ -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 {
|
||||
|
Reference in New Issue
Block a user