summaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2014-04-01 00:34:00 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2014-04-22 00:37:29 +0200
commitcc3a9f72548e9f497e77b7f6625f021b8cd2bb77 (patch)
treeb0d362f2081cad4c33ae18f7167252845b693b16 /drivers/nfc
parentNFC: pn544_i2c: Fix null pointer exception when not using platform data (diff)
downloadlinux-cc3a9f72548e9f497e77b7f6625f021b8cd2bb77.tar.xz
linux-cc3a9f72548e9f497e77b7f6625f021b8cd2bb77.zip
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')
-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);