diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-02-03 21:48:04 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-02-04 11:09:53 +0300 |
commit | 12bdf27d46c9d5e490fa164551642e065105db78 (patch) | |
tree | 477d4c54873b2cb6b6b13afb286f004d95ad4c5f /net/nfc/nci/ntf.c | |
parent | 26fc6c7f02cb26c39c4733de3dbc3c0646fc1074 (diff) | |
download | linux-12bdf27d46c9d5e490fa164551642e065105db78.tar.xz |
NFC: nci: Add reference to the RF logical connection
The NCI_STATIC_RF_CONN_ID logical connection is the most used
connection. Keeping it directly accessible in the nci_dev
structure will simplify and optimize the access.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/nci/ntf.c')
-rw-r--r-- | net/nfc/nci/ntf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/nfc/nci/ntf.c b/net/nfc/nci/ntf.c index 33f5f00ecf4c..6bbbf6fdacc0 100644 --- a/net/nfc/nci/ntf.c +++ b/net/nfc/nci/ntf.c @@ -625,8 +625,7 @@ static void nci_rf_intf_activated_ntf_packet(struct nci_dev *ndev, exit: if (err == NCI_STATUS_OK) { - conn_info = nci_get_conn_info_by_conn_id(ndev, - NCI_STATIC_RF_CONN_ID); + conn_info = ndev->rf_conn_info; if (!conn_info) return; @@ -684,8 +683,7 @@ static void nci_rf_deactivate_ntf_packet(struct nci_dev *ndev, pr_debug("entry, type 0x%x, reason 0x%x\n", ntf->type, ntf->reason); - conn_info = - nci_get_conn_info_by_conn_id(ndev, NCI_STATIC_RF_CONN_ID); + conn_info = ndev->rf_conn_info; if (!conn_info) return; |