Skip to content
Commit bdba49cb authored by Bence Csókás's avatar Bence Csókás Committed by Wolfram Sang
Browse files

i2c: cp2615: Fix 'assignment to __be16' warning



While the preamble field _is_ technically big-endian, its value is always 0x2A2A,
which is the same in either endianness. However, to avoid generating a warning,
we should still call `htons()` explicitly.

Signed-off-by: default avatarBence Csókás <bence98@sch.bme.hu>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent cc9c5423
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment