diff options
author | Eric Lapuyade <eric.lapuyade@linux.intel.com> | 2012-10-23 05:37:43 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-11-19 17:56:59 -0500 |
commit | 9c5121a034b1414d83c553e9961bda823e2e65b4 (patch) | |
tree | d1833773936f1e0ba59c9bc436c94d0fba38375c | |
parent | 84d4819033972f6bae2b34a8ba07c5c2e836e989 (diff) |
NFC: Export nfc_hci_sak_to_protocol()
Some HCI drivers will need it.
Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | include/net/nfc/hci.h | 1 | ||||
-rw-r--r-- | net/nfc/hci/core.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/net/nfc/hci.h b/include/net/nfc/hci.h index 150e3caddbc..671953e1157 100644 --- a/include/net/nfc/hci.h +++ b/include/net/nfc/hci.h | |||
@@ -237,5 +237,6 @@ int nfc_hci_send_response(struct nfc_hci_dev *hdev, u8 gate, u8 response, | |||
237 | int nfc_hci_send_event(struct nfc_hci_dev *hdev, u8 gate, u8 event, | 237 | int nfc_hci_send_event(struct nfc_hci_dev *hdev, u8 gate, u8 event, |
238 | const u8 *param, size_t param_len); | 238 | const u8 *param, size_t param_len); |
239 | int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate); | 239 | int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate); |
240 | u32 nfc_hci_sak_to_protocol(u8 sak); | ||
240 | 241 | ||
241 | #endif /* __NET_HCI_H */ | 242 | #endif /* __NET_HCI_H */ |
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c index 6825a200c4b..7bea574d593 100644 --- a/net/nfc/hci/core.c +++ b/net/nfc/hci/core.c | |||
@@ -170,7 +170,7 @@ void nfc_hci_cmd_received(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, | |||
170 | kfree_skb(skb); | 170 | kfree_skb(skb); |
171 | } | 171 | } |
172 | 172 | ||
173 | static u32 nfc_hci_sak_to_protocol(u8 sak) | 173 | u32 nfc_hci_sak_to_protocol(u8 sak) |
174 | { | 174 | { |
175 | switch (NFC_HCI_TYPE_A_SEL_PROT(sak)) { | 175 | switch (NFC_HCI_TYPE_A_SEL_PROT(sak)) { |
176 | case NFC_HCI_TYPE_A_SEL_PROT_MIFARE: | 176 | case NFC_HCI_TYPE_A_SEL_PROT_MIFARE: |
@@ -185,6 +185,7 @@ static u32 nfc_hci_sak_to_protocol(u8 sak) | |||
185 | return 0xffffffff; | 185 | return 0xffffffff; |
186 | } | 186 | } |
187 | } | 187 | } |
188 | EXPORT_SYMBOL(nfc_hci_sak_to_protocol); | ||
188 | 189 | ||
189 | int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate) | 190 | int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate) |
190 | { | 191 | { |