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>
This commit is contained in:
parent
0be8ce737c
commit
6ae3ed1c52
@ -355,8 +355,8 @@ static int st21nfca_hci_start_poll(struct nfc_hci_dev *hdev,
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
pol_req =
|
pol_req = be32_to_cpu((__force __be32)
|
||||||
be32_to_cpu(ST21NFCA_RF_READER_F_POL_REQ_DEFAULT);
|
ST21NFCA_RF_READER_F_POL_REQ_DEFAULT);
|
||||||
r = nfc_hci_set_param(hdev, ST21NFCA_RF_READER_F_GATE,
|
r = nfc_hci_set_param(hdev, ST21NFCA_RF_READER_F_GATE,
|
||||||
ST21NFCA_RF_READER_F_POL_REQ,
|
ST21NFCA_RF_READER_F_POL_REQ,
|
||||||
(u8 *) &pol_req, 4);
|
(u8 *) &pol_req, 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user