NFC: The core part should generate the target index
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 10 Apr 2012 17:43:09 +0000 (19:43 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 12 Apr 2012 19:10:37 +0000 (15:10 -0400)
commitc4fbb6515a4dcec83d340247639b5644c4745528
tree9123c1e0b56ea1f9910ce4db1e9046bd5a8a29c4
parent0efbf7fb308d0c6f8419922850a2d0b45d4d4401
NFC: The core part should generate the target index

The target index can be used by userspace to uniquely identify a target
and thus should be kept unique, per NFC adapter. Moreover, some protocols
do not provide a logical index when discovering new targets, so we have to
generate one for them.
For NCI or pn533 to fetch their logical index, we added a logical_idx field
to the target structure.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/nfc/nfc.h
net/nfc/core.c
net/nfc/nci/core.c
net/nfc/nci/ntf.c
net/nfc/rawsock.c