Commit 84b8ae9f authored by Jiong Du's avatar Jiong Du Committed by Greg Kroah-Hartman

staging: ks7010: fix complex macro error

Fixes checkpatch error: Macros with complex values should be enclosed in parentheses
Signed-off-by: default avatarJiong Du <jiongdu0.0@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent df86d641
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#define ROL32(A, n) (((A) << (n)) | (((A)>>(32-(n))) & ((1UL << (n)) - 1))) #define ROL32(A, n) (((A) << (n)) | (((A)>>(32-(n))) & ((1UL << (n)) - 1)))
#define ROR32(A, n) ROL32((A), 32-(n)) #define ROR32(A, n) ROL32((A), 32-(n))
// Convert from Byte[] to UInt32 in a portable way // Convert from Byte[] to UInt32 in a portable way
#define getUInt32(A, B) (uint32_t)(A[B+0] << 0) + (A[B+1] << 8) + (A[B+2] << 16) + (A[B+3] << 24) #define getUInt32(A, B) ((uint32_t)(A[B+0] << 0) + (A[B+1] << 8) + (A[B+2] << 16) + (A[B+3] << 24))
// Convert from UInt32 to Byte[] in a portable way // Convert from UInt32 to Byte[] in a portable way
#define putUInt32(A, B, C) \ #define putUInt32(A, B, C) \
......
Markdown is supported
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