commit | 7eda8b8e967781cfa5a04962502f9aa428f67e5f | [log] [tgz] |
---|---|---|
author | Samuel Ortiz <sameo@linux.intel.com> | Mon Oct 22 15:57:58 2012 +0200 |
committer | Samuel Ortiz <sameo@linux.intel.com> | Fri Oct 26 18:26:51 2012 +0200 |
tree | 9ae63d4aee01fc7bf38545bd6b81350962adacfc | |
parent | ab34a1813ca16bfbc672a21ca354164c8b941922 [diff] [blame] |
NFC: Use IDR library to assing NFC devices IDs As a consequence the NFC device IDs won't be increasing all the time, as IDR provides the first available ID. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h index f05b106..fce80b2 100644 --- a/include/net/nfc/nfc.h +++ b/include/net/nfc/nfc.h
@@ -95,7 +95,7 @@ }; struct nfc_dev { - unsigned int idx; + int idx; u32 target_next_idx; struct nfc_target *targets; int n_targets;