drivers/power/bq769x0.c: fully parenthesize MIN and MAX macros
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
parent
7bc7b611d6
commit
6626699ec7
@ -65,10 +65,7 @@
|
|||||||
/* Helpers ******************************************************************/
|
/* Helpers ******************************************************************/
|
||||||
|
|
||||||
#ifndef MIN
|
#ifndef MIN
|
||||||
# define MIN(a,b) (a < b ? a : b)
|
# define MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||||
#endif
|
|
||||||
#ifndef MAX
|
|
||||||
# define MAX(a,b) (a > b ? a : b)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The CRC function expects to see address bytes as they appear on the wire */
|
/* The CRC function expects to see address bytes as they appear on the wire */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user