diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-01-27 03:18:18 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-01-28 02:03:36 +0300 |
commit | ec14b6c93c2f804f302b8ea1736539d39b9c544b (patch) | |
tree | 975f7fc565a1811e143f6294271ff4501390820a /net/nfc | |
parent | d6365c018b3f9e12eeb262407ccf5b143bcc6bad (diff) | |
download | linux-ec14b6c93c2f804f302b8ea1736539d39b9c544b.tar.xz |
NFC: hci: Remove nfc_hci_pipe2gate function
With the newly introduced pipes table hci_dev fields,
the nfc_hci_pipe2gate routine is no longer needed.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-rw-r--r-- | net/nfc/hci/hci.h | 2 | ||||
-rw-r--r-- | net/nfc/hci/hcp.c | 11 |
2 files changed, 0 insertions, 13 deletions
diff --git a/net/nfc/hci/hci.h b/net/nfc/hci/hci.h index c1278bd0fc5e..ab4c8e80b1ad 100644 --- a/net/nfc/hci/hci.h +++ b/net/nfc/hci/hci.h @@ -85,8 +85,6 @@ int nfc_hci_hcp_message_tx(struct nfc_hci_dev *hdev, u8 pipe, data_exchange_cb_t cb, void *cb_context, unsigned long completion_delay); -u8 nfc_hci_pipe2gate(struct nfc_hci_dev *hdev, u8 pipe); - void nfc_hci_hcp_message_rx(struct nfc_hci_dev *hdev, u8 pipe, u8 type, u8 instruction, struct sk_buff *skb); diff --git a/net/nfc/hci/hcp.c b/net/nfc/hci/hcp.c index e9de1514656e..1fe725d66085 100644 --- a/net/nfc/hci/hcp.c +++ b/net/nfc/hci/hcp.c @@ -124,17 +124,6 @@ out_skb_err: return err; } -u8 nfc_hci_pipe2gate(struct nfc_hci_dev *hdev, u8 pipe) -{ - int gate; - - for (gate = 0; gate < NFC_HCI_MAX_GATES; gate++) - if (hdev->gate2pipe[gate] == pipe) - return gate; - - return 0xff; -} - /* * Receive hcp message for pipe, with type and cmd. * skb contains optional message data only. |