NFC: Cache the core NFC active target pointer instead of its index
authorEric Lapuyade <eric.lapuyade@intel.com>
Mon, 7 May 2012 10:31:13 +0000 (12:31 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 May 2012 21:27:59 +0000 (17:27 -0400)
commit900994332675f84a9fbbb33ff089474614c7f2fe
tree6b9b6f7b50217a30e72848466865e521ee64d048
parent536acc085c641ff8ba46c2c0e97b5e137cbc22d6
NFC: Cache the core NFC active target pointer instead of its index

The NFC Core now caches the active nfc target pointer, thereby avoiding
the need to lookup the target table for each invocation of a driver ops.
Consequently, pn533, HCI and NCI now directly receive an nfc_target
pointer instead of a target index.

Cc: Ilan Elias <ilane@ti.com>
Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/nfc/pn533.c
include/net/nfc/nfc.h
net/nfc/core.c
net/nfc/hci/core.c
net/nfc/nci/core.c