diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-05 00:03:46 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-06 20:16:22 (GMT) |
commit | d8dc107248d336695ca6a964c5ffdc2f4d160a04 (patch) | |
tree | 3efb1bebfc0d03e44402043ad0648e59b92ff07f | |
parent | 7975754f61b8e87ad0b34509a94c54c8d19ea15d (diff) | |
download | linux-d8dc107248d336695ca6a964c5ffdc2f4d160a04.tar.xz |
NFC: Export Jewel/Topaz ID from pn533
The jewel ID is the NFCID1 for Topaz NFC tags.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/nfc/pn533.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index 353bab7..f5da5ae 100644 --- a/drivers/nfc/pn533.c +++ b/drivers/nfc/pn533.c @@ -828,6 +828,8 @@ static int pn533_target_found_jewel(struct nfc_target *nfc_tgt, u8 *tgt_data, nfc_tgt->supported_protocols = NFC_PROTO_JEWEL_MASK; nfc_tgt->sens_res = be16_to_cpu(tgt_jewel->sens_res); + nfc_tgt->nfcid1_len = 4; + memcpy(nfc_tgt->nfcid1, tgt_jewel->jewelid, nfc_tgt->nfcid1_len); return 0; } |