projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
linux/kernel.h: sync min, max, min3, max3 macros with Linux
[oweals/u-boot.git]
/
drivers
/
misc
/
cros_ec_spi.c
diff --git
a/drivers/misc/cros_ec_spi.c
b/drivers/misc/cros_ec_spi.c
index e403664bb561755184c60e9020e028b84169d40f..e6dba298b1e9f2a37b31b4511cf9c8902c9ff227 100644
(file)
--- a/
drivers/misc/cros_ec_spi.c
+++ b/
drivers/misc/cros_ec_spi.c
@@
-143,7
+143,7
@@
int cros_ec_spi_command(struct cros_ec_dev *dev, uint8_t cmd, int cmd_version,
return -1;
}
- len = min(p[1], din_len);
+ len = min(
(int)
p[1], din_len);
cros_ec_dump_data("in", -1, p, len + 3);
/* Response code is first byte of message */