NFC: pn544: Change event_received gate parameter to pipe
authorChristophe Ricard <christophe.ricard@gmail.com>
Tue, 27 Jan 2015 00:18:16 +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/pn544/pn544.c

index 9c8051d20cea98fa4377edb79167ddef2b14cf24..12e819ddf17a708c94ab0c122ac852f0199c85aa 100644 (file)
@@ -724,10 +724,11 @@ static int pn544_hci_check_presence(struct nfc_hci_dev *hdev,
  * <= 0: driver handled the event, skb consumed
  *    1: driver does not handle the event, please do standard processing
  */
-static int pn544_hci_event_received(struct nfc_hci_dev *hdev, u8 gate, u8 event,
+static int pn544_hci_event_received(struct nfc_hci_dev *hdev, u8 pipe, u8 event,
                                    struct sk_buff *skb)
 {
        struct sk_buff *rgb_skb = NULL;
+       u8 gate = hdev->pipes[pipe].gate;
        int r;
 
        pr_debug("hci event %d\n", event);