]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7d6aac688b516fd33aedba421dbdfb2c3bd3fa9
tree9123c1e0b56ea1f9910ce4db1e9046bd5a8a29c4
parent5aeb9499c4a94a0dcbb935226334f7a12e6ae156
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