Skip to content

Commit

Permalink
NFC: nci: Change credits field to credits_cnt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christophe Ricard authored and Samuel Ortiz committed Feb 4, 2015
1 parent b16ae71 commit 3ba5c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/net/nfc/nci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion net/nfc/nci/rsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3ba5c84

Please sign in to comment.