diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-12-18 21:26:33 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-12-20 17:48:00 +0000 |
commit | 361a935332489c635192b39204c7ec7af1667c8f (patch) | |
tree | d9e7589a4c475ba8c991c873c5600d6631f4d62d /src/drivers/pc80/tpm/tis.c | |
parent | f97c1c9d86ff56ba9d1de4fc7c9499742224d365 (diff) |
{drivers,southbridge}: Replace min() with MIN()
This is to remove min/max() from <stdlib.h>.
Change-Id: Ica03d9aec8a81f57709abcac655dfb0ebce3f8c6
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37818
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/pc80/tpm/tis.c')
-rw-r--r-- | src/drivers/pc80/tpm/tis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c index 39fa70db3f..e9f14854c4 100644 --- a/src/drivers/pc80/tpm/tis.c +++ b/src/drivers/pc80/tpm/tis.c @@ -21,7 +21,7 @@ * Infineon slb9635), so this driver provides access to locality 0 only. */ -#include <stdlib.h> +#include <commonlib/helpers.h> #include <string.h> #include <delay.h> #include <device/mmio.h> @@ -488,7 +488,7 @@ static u32 tis_senddata(const u8 *const data, u32 len) * changes to zero exactly after the last byte is fed into the * FIFO. */ - count = min(burst, len - offset - 1); + count = MIN(burst, len - offset - 1); while (count--) tpm_write_data(data[offset++], locality); |