OSDN Git Service

NFC: microread: Change event_received gate parameter to pipe
authorChristophe Ricard <christophe.ricard@gmail.com>
Tue, 27 Jan 2015 00:18:17 +0000 (01:18 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 27 Jan 2015 23:03:35 +0000 (00:03 +0100)
The below event_received hci handler has change the gate parameter to pipe.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
drivers/nfc/microread/microread.c

index 963a4a5..f454dc6 100644 (file)
@@ -557,10 +557,11 @@ exit:
                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)
 {
        int r;
+       u8 gate = hdev->pipes[pipe].gate;
        u8 mode;
 
        pr_info("Microread received event 0x%x to gate 0x%x\n", event, gate);