summaryrefslogtreecommitdiff
path: root/drivers/nfc/st21nfca
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2014-04-01 02:34:00 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2014-04-22 02:37:29 +0400
commitcc3a9f72548e9f497e77b7f6625f021b8cd2bb77 (patch)
treeb0d362f2081cad4c33ae18f7167252845b693b16 /drivers/nfc/st21nfca
parent12b25dbf119337ce51dc93e5ecd7cbe891877328 (diff)
downloadlinux-cc3a9f72548e9f497e77b7f6625f021b8cd2bb77.tar.xz
NFC: st21nfca: Fix sparse: cast to restricted __be16
Fixing "sparse: cast to restricted __be16" message when building with make C=1 CF=-D__CHECK_ENDIAN__ Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/st21nfca')
-rw-r--r--drivers/nfc/st21nfca/st21nfca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/st21nfca/st21nfca.c b/drivers/nfc/st21nfca/st21nfca.c
index 9e9b9f1140c8..32d5e8742ee8 100644
--- a/drivers/nfc/st21nfca/st21nfca.c
+++ b/drivers/nfc/st21nfca/st21nfca.c
@@ -363,7 +363,7 @@ static int st21nfca_get_iso14443_3_atqa(struct nfc_hci_dev *hdev, u16 *atqa)
goto exit;
}
- *atqa = be16_to_cpu(*(u16 *) atqa_skb->data);
+ *atqa = be16_to_cpu(*(__be16 *) atqa_skb->data);
exit:
kfree_skb(atqa_skb);