]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
NFC: nfc_driver_failure() implementation
authorEric Lapuyade <eric.lapuyade@intel.com>
Mon, 11 Jun 2012 13:52:38 +0000 (15:52 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jul 2012 20:42:11 +0000 (16:42 -0400)
If the device is polling we sent a 0 target found event.

Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/core.c

index 749ee48d36005c98b246a12f10e8c0960196479d..00105e77c792c4e4a8aa93d6379a508ddcf5743d 100644 (file)
@@ -663,13 +663,9 @@ int nfc_target_lost(struct nfc_dev *dev, u32 target_idx)
 }
 EXPORT_SYMBOL(nfc_target_lost);
 
-void nfc_driver_failure(struct nfc_dev *dev, int err)
+inline void nfc_driver_failure(struct nfc_dev *dev, int err)
 {
-       /*
-        * TODO: if polling is active, send empty target_found
-        * or else do whatever makes sense to let user space
-        * know this device needs to be closed and reinitialized.
-        */
+       nfc_targets_found(dev, NULL, 0);
 }
 EXPORT_SYMBOL(nfc_driver_failure);