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>
This commit is contained in:

committed by
Samuel Ortiz

szülő
26fc6c7f02
commit
12bdf27d46
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user