NFC: nci: Change credits field to credits_cnt

For consistency sake change nci_core_conn_create_rsp structure
credits field to credits_cnt.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Christophe Ricard 2015-02-03 19:48:06 +01:00 committed by Samuel Ortiz
parent b16ae7160a
commit 3ba5c8466b
2 changed files with 2 additions and 2 deletions

View File

@ -353,7 +353,7 @@ struct nci_core_set_config_rsp {
struct nci_core_conn_create_rsp {
__u8 status;
__u8 max_ctrl_pkt_payload_len;
__u8 credits;
__u8 credits_cnt;
__u8 conn_id;
} __packed;

View File

@ -245,7 +245,7 @@ static void nci_core_conn_create_rsp_packet(struct nci_dev *ndev,
conn_info->conn_id = rsp->conn_id;
conn_info->max_pkt_payload_len = rsp->max_ctrl_pkt_payload_len;
atomic_set(&conn_info->credits_cnt, rsp->credits);
atomic_set(&conn_info->credits_cnt, rsp->credits_cnt);
}
exit: