Commit 84d48190 authored by Eric Lapuyade's avatar Eric Lapuyade Committed by Samuel Ortiz

NFC: Export nfc_hci_result_to_errno as it can be needed by HCI drivers

Signed-off-by: default avatarEric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 74a5b966
...@@ -149,6 +149,8 @@ void *nfc_hci_get_clientdata(struct nfc_hci_dev *hdev); ...@@ -149,6 +149,8 @@ void *nfc_hci_get_clientdata(struct nfc_hci_dev *hdev);
void nfc_hci_driver_failure(struct nfc_hci_dev *hdev, int err); void nfc_hci_driver_failure(struct nfc_hci_dev *hdev, int err);
int nfc_hci_result_to_errno(u8 result);
/* Host IDs */ /* Host IDs */
#define NFC_HCI_HOST_CONTROLLER_ID 0x00 #define NFC_HCI_HOST_CONTROLLER_ID 0x00
#define NFC_HCI_TERMINAL_HOST_ID 0x01 #define NFC_HCI_TERMINAL_HOST_ID 0x01
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
/* Largest headroom needed for outgoing HCI commands */ /* Largest headroom needed for outgoing HCI commands */
#define HCI_CMDS_HEADROOM 1 #define HCI_CMDS_HEADROOM 1
static int nfc_hci_result_to_errno(u8 result) int nfc_hci_result_to_errno(u8 result)
{ {
switch (result) { switch (result) {
case NFC_HCI_ANY_OK: case NFC_HCI_ANY_OK:
...@@ -46,6 +46,7 @@ static int nfc_hci_result_to_errno(u8 result) ...@@ -46,6 +46,7 @@ static int nfc_hci_result_to_errno(u8 result)
return -1; return -1;
} }
} }
EXPORT_SYMBOL(nfc_hci_result_to_errno);
static void nfc_hci_msg_tx_work(struct work_struct *work) static void nfc_hci_msg_tx_work(struct work_struct *work)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment