Commit e5e8d1d3 authored by Christophe Ricard's avatar Christophe Ricard Committed by Greg Kroah-Hartman

nfc: st-nci: Fix non accurate comment for st_nci_i2c_read

commit e7723b33 upstream.

Due to a copy and paste error st_nci_i2c_read still contains
st21nfca header comment.
Signed-off-by: default avatarChristophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bfc3f449
...@@ -118,15 +118,10 @@ static int st_nci_i2c_write(void *phy_id, struct sk_buff *skb) ...@@ -118,15 +118,10 @@ static int st_nci_i2c_write(void *phy_id, struct sk_buff *skb)
/* /*
* Reads an ndlc frame and returns it in a newly allocated sk_buff. * Reads an ndlc frame and returns it in a newly allocated sk_buff.
* returns: * returns:
* frame size : if received frame is complete (find ST_NCI_SOF_EOF at * 0 : if received frame is complete
* end of read)
* -EAGAIN : if received frame is incomplete (not find ST_NCI_SOF_EOF
* at end of read)
* -EREMOTEIO : i2c read error (fatal) * -EREMOTEIO : i2c read error (fatal)
* -EBADMSG : frame was incorrect and discarded * -EBADMSG : frame was incorrect and discarded
* (value returned from st_nci_i2c_repack) * -ENOMEM : cannot allocate skb, frame dropped
* -EIO : if no ST_NCI_SOF_EOF is found after reaching
* the read length end sequence
*/ */
static int st_nci_i2c_read(struct st_nci_i2c_phy *phy, static int st_nci_i2c_read(struct st_nci_i2c_phy *phy,
struct sk_buff **skb) struct sk_buff **skb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment