mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
soundwire: wrap macro argument in parenthesis
macro argument should be inside a parenthesis to avoid precedence issues checkpatch complains: CHECK: Macro argument 'n' may be better as '(n)' to avoid precedence issues Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7d3b3cdfd1
commit
1824dd8035
@ -36,7 +36,7 @@ struct sdw_slave;
|
||||
#define SDW_FRAME_CTRL_BITS 48
|
||||
#define SDW_MAX_DEVICES 11
|
||||
|
||||
#define SDW_VALID_PORT_RANGE(n) (n <= 14 && n >= 1)
|
||||
#define SDW_VALID_PORT_RANGE(n) ((n) <= 14 && (n) >= 1)
|
||||
|
||||
#define SDW_DAI_ID_RANGE_START 100
|
||||
#define SDW_DAI_ID_RANGE_END 200
|
||||
|
Loading…
Reference in New Issue
Block a user