drivers/power/bq769x0.c: fully parenthesize MIN and MAX macros

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
Juha Niskanen 2020-12-08 18:34:25 +02:00 committed by Xiang Xiao
parent 7bc7b611d6
commit 6626699ec7
1 changed files with 1 additions and 4 deletions

View File

@ -65,10 +65,7 @@
/* Helpers ******************************************************************/
#ifndef MIN
# define MIN(a,b) (a < b ? a : b)
#endif
#ifndef MAX
# define MAX(a,b) (a > b ? a : b)
# define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
/* The CRC function expects to see address bytes as they appear on the wire */