diff options
author | Ilan Elias <ilane@ti.com> | 2012-01-18 06:16:13 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-24 14:32:28 -0500 |
commit | 25a1d9dc850b1bdcc4760eb625f0a67057f54d26 (patch) | |
tree | d717fdf49f8183899f8c98ce8860c5b1c4dceb2d /include | |
parent | 8939e47fc953cce6ef53e79e9ff9b53319d1a72d (diff) |
NFC: NFC core layer should not set the target_idx
The NFC core layer should not set the target_idx.
Instead, the driver layer (e.g. NCI, PN533) should set the
target_idx, so that it will be able to identify the target
when its I/F (e.g. activate_target) is called.
This is required in order to support multiple targets.
Note that currently supported drivers (PN533 and NCI) don't
use the target_idx in their implementation.
Signed-off-by: Ilan Elias <ilane@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/nfc/nfc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h index 819530d0e37f..d253278e5a96 100644 --- a/include/net/nfc/nfc.h +++ b/include/net/nfc/nfc.h | |||
@@ -87,7 +87,6 @@ struct nfc_genl_data { | |||
87 | 87 | ||
88 | struct nfc_dev { | 88 | struct nfc_dev { |
89 | unsigned idx; | 89 | unsigned idx; |
90 | unsigned target_idx; | ||
91 | struct nfc_target *targets; | 90 | struct nfc_target *targets; |
92 | int n_targets; | 91 | int n_targets; |
93 | int targets_generation; | 92 | int targets_generation; |