Commit d6365c01 authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz

NFC: microread: Change event_received gate parameter to pipe

The below event_received hci handler has change the gate parameter to pipe.
Signed-off-by: default avatarChristophe Ricard <christophe-h.ricard@st.com>
parent 8abe3c6a
...@@ -557,10 +557,11 @@ static void microread_target_discovered(struct nfc_hci_dev *hdev, u8 gate, ...@@ -557,10 +557,11 @@ static void microread_target_discovered(struct nfc_hci_dev *hdev, u8 gate,
pr_err("Failed to handle discovered target err=%d\n", r); pr_err("Failed to handle discovered target err=%d\n", r);
} }
static int microread_event_received(struct nfc_hci_dev *hdev, u8 gate, static int microread_event_received(struct nfc_hci_dev *hdev, u8 pipe,
u8 event, struct sk_buff *skb) u8 event, struct sk_buff *skb)
{ {
int r; int r;
u8 gate = hdev->pipes[pipe].gate;
u8 mode; u8 mode;
pr_info("Microread received event 0x%x to gate 0x%x\n", event, gate); pr_info("Microread received event 0x%x to gate 0x%x\n", event, gate);
......
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