]> Pileus Git - ~andy/linux/commitdiff
NFC: Export nfc_hci_result_to_errno as it can be needed by HCI drivers
authorEric Lapuyade <eric.lapuyade@linux.intel.com>
Wed, 17 Oct 2012 14:50:10 +0000 (16:50 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 19 Nov 2012 22:56:59 +0000 (23:56 +0100)
Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/net/nfc/hci.h
net/nfc/hci/core.c

index 639f50af42dfa1481206642c986dec080f34f445..150e3caddbcfababa81e0340ae9b2c6213d7a104 100644 (file)
@@ -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);
 
+int nfc_hci_result_to_errno(u8 result);
+
 /* Host IDs */
 #define NFC_HCI_HOST_CONTROLLER_ID     0x00
 #define NFC_HCI_TERMINAL_HOST_ID       0x01
index 38d5f96dfd10f72a9c9ce10660d409f052b5b1b6..6825a200c4bb51e856db0baa9f741755c00fad34 100644 (file)
@@ -33,7 +33,7 @@
 /* Largest headroom needed for outgoing HCI commands */
 #define HCI_CMDS_HEADROOM 1
 
-static int nfc_hci_result_to_errno(u8 result)
+int nfc_hci_result_to_errno(u8 result)
 {
        switch (result) {
        case NFC_HCI_ANY_OK:
@@ -46,6 +46,7 @@ static int nfc_hci_result_to_errno(u8 result)
                return -1;
        }
 }
+EXPORT_SYMBOL(nfc_hci_result_to_errno);
 
 static void nfc_hci_msg_tx_work(struct work_struct *work)
 {