diff options
author | Eric Lapuyade <eric.lapuyade@intel.com> | 2012-05-07 06:31:15 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-15 17:28:00 -0400 |
commit | d4ccb132801aeeb2cfd18c4b4b7fa0043ab37f80 (patch) | |
tree | 7f3372d3925e5cb69cb5db5867accee4d17ff9b8 /include/net/nfc | |
parent | addfabf98daad7b469ad788a622dbeab6aaaa330 (diff) |
NFC: Specify usage for targets found and target lost events
It is now specified that nfc_target_found() and nfc_target_lost() core
functions must not be called from an atomic context. This allow us to
serialize calls and protect the targets table using the nfc device lock
instead of a spinlock.
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>
Diffstat (limited to 'include/net/nfc')
-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 0fcf4a54776b..b7ca4a2a1d72 100644 --- a/include/net/nfc/nfc.h +++ b/include/net/nfc/nfc.h | |||
@@ -97,7 +97,6 @@ struct nfc_dev { | |||
97 | struct nfc_target *targets; | 97 | struct nfc_target *targets; |
98 | int n_targets; | 98 | int n_targets; |
99 | int targets_generation; | 99 | int targets_generation; |
100 | spinlock_t targets_lock; | ||
101 | struct device dev; | 100 | struct device dev; |
102 | bool dev_up; | 101 | bool dev_up; |
103 | bool polling; | 102 | bool polling; |