{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>
This commit is contained in:
committed by
Patrick Georgi
parent
f97c1c9d86
commit
361a935332
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user