]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: digital: Add 'tg_listen_md' and 'tg_get_rf_tech' driver hooks
authorMark A. Greer <mgreer@animalcreek.com>
Tue, 22 Jul 2014 04:24:39 +0000 (21:24 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 22 Jul 2014 23:17:31 +0000 (01:17 +0200)
commit5378dee4f78056e092c5961afd1e3584fee5bbbe
treeabd0341d5faa9431a964d3cd7349d5bc801b8f44
parentd6684f66e0806a58793b3a7a1b2aa9e56e4edee4
NFC: digital: Add 'tg_listen_md' and 'tg_get_rf_tech' driver hooks

The digital layer of the NFC subsystem currently
supports a 'tg_listen_mdaa' driver hook that supports
devices that can do mode detection and automatic
anticollision.  However, there are some devices that
can do mode detection but not automatic anitcollision
so add the 'tg_listen_md' hook to support those devices.

In order for the digital layer to get the RF technology
detected by the device from the driver, add the
'tg_get_rf_tech' hook.  It is only valid to call this
hook immediately after a successful call to 'tg_listen_md'.

CC: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/net/nfc/digital.h
net/nfc/digital.h
net/nfc/digital_core.c
net/nfc/digital_technology.c