{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
@@ -13,9 +13,9 @@
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <commonlib/helpers.h>
|
||||
#include <spi-generic.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int spi_claim_bus(const struct spi_slave *slave)
|
||||
@@ -113,7 +113,7 @@ unsigned int spi_crop_chunk(const struct spi_slave *slave, unsigned int cmd_len,
|
||||
if (deduct_cmd_len && (ctrlr_max > cmd_len))
|
||||
ctrlr_max -= cmd_len;
|
||||
|
||||
return min(ctrlr_max, buf_len);
|
||||
return MIN(ctrlr_max, buf_len);
|
||||
}
|
||||
|
||||
void __weak spi_init(void)
|
||||
|
Reference in New Issue
Block a user