summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2014-07-28 18:11:30 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2014-09-07 23:56:46 +0200
commit6ae3ed1c52b9ce12e1b3d2ac8f648b7de1569dfe (patch)
tree5fcc93eedbc8ceed3571322c4968db24c6907440
parent0be8ce737c1f052a1811d029f8afb03583f7238f (diff)
downloadop-kernel-dev-6ae3ed1c52b9ce12e1b3d2ac8f648b7de1569dfe.zip
op-kernel-dev-6ae3ed1c52b9ce12e1b3d2ac8f648b7de1569dfe.tar.gz
NFC: st21nfca: Fix sparse: cast to restricted __be32
Fixing "sparse: cast to restricted __be32" 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>
-rw-r--r--drivers/nfc/st21nfca/st21nfca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nfc/st21nfca/st21nfca.c b/drivers/nfc/st21nfca/st21nfca.c
index a902b05..823be16 100644
--- a/drivers/nfc/st21nfca/st21nfca.c
+++ b/drivers/nfc/st21nfca/st21nfca.c
@@ -355,8 +355,8 @@ static int st21nfca_hci_start_poll(struct nfc_hci_dev *hdev,
if (r < 0)
return r;
- pol_req =
- be32_to_cpu(ST21NFCA_RF_READER_F_POL_REQ_DEFAULT);
+ pol_req = be32_to_cpu((__force __be32)
+ ST21NFCA_RF_READER_F_POL_REQ_DEFAULT);
r = nfc_hci_set_param(hdev, ST21NFCA_RF_READER_F_GATE,
ST21NFCA_RF_READER_F_POL_REQ,
(u8 *) &pol_req, 4);
OpenPOWER on IntegriCloud