Skip to content

Commit

Permalink
reset: uniphier: enclose UNIPHIER_RESET_ID_END value in parentheses
Browse files Browse the repository at this point in the history
Fixes a checkpatch error:

  ERROR: Macros with complex values should be enclosed in parentheses
  thesofproject#23: FILE: drivers/reset/reset-uniphier.c:23:
  +#define UNIPHIER_RESET_ID_END		(unsigned int)(-1)

Signed-off-by: Philipp Zabel <[email protected]>
  • Loading branch information
pH5 committed May 10, 2021
1 parent 71400c3 commit b19a5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/reset/reset-uniphier.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct uniphier_reset_data {
#define UNIPHIER_RESET_ACTIVE_LOW BIT(0)
};

#define UNIPHIER_RESET_ID_END (unsigned int)(-1)
#define UNIPHIER_RESET_ID_END ((unsigned int)(-1))

#define UNIPHIER_RESET_END \
{ .id = UNIPHIER_RESET_ID_END }
Expand Down

0 comments on commit b19a5ae

Please sign in to comment.