NFC: HCI check presence must not fail when driver doesn't support it
authorEric Lapuyade <eric.lapuyade@linux.intel.com>
Tue, 2 Oct 2012 15:27:36 +0000 (17:27 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 26 Oct 2012 16:26:46 +0000 (18:26 +0200)
commit632c016ab8ba1f98262bd6242b38d73ee4ae652e
tree7349250c5faa50c93a48ee5eba81e9fdad682439
parentda052850b911dfd0fcd5c8d6308917ebe2edbacf
NFC: HCI check presence must not fail when driver doesn't support it

When the driver does not support checking the tag is still present, it
must return -EOPNOTSUPP. The NFC Core will then stop asking and not
report a tag lost event to user space.

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