u-boot/drivers/mtd/spi
Masahiro Yamada b41411954d linux/kernel.h: sync min, max, min3, max3 macros with Linux
U-Boot has never cared about the type when we get max/min of two
values, but Linux Kernel does.  This commit gets min, max, min3, max3
macros synced with the kernel introducing type checks.

Many of references of those macros must be fixed to suppress warnings.
We have two options:
 - Use min, max, min3, max3 only when the arguments have the same type
   (or add casts to the arguments)
 - Use min_t/max_t instead with the appropriate type for the first
   argument

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Pavel Machek <pavel@denx.de>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
[trini: Fixup arch/blackfin/lib/string.c]
Signed-off-by: Tom Rini <trini@ti.com>
2014-11-23 06:48:30 -05:00
..
eeprom_m95xxx.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_espi_spl.c driver: Add support of image load for MMC & SPI in SPL 2014-04-22 17:58:50 -07:00
Makefile dm: sf: Add a uclass for SPI flash 2014-10-22 10:36:50 -06:00
ramtron.c sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00
sandbox.c linux/kernel.h: sync min, max, min3, max3 macros with Linux 2014-11-23 06:48:30 -05:00
sf-uclass.c dm: sf: Add a uclass for SPI flash 2014-10-22 10:36:50 -06:00
sf.c sf: Add CONFIG_SF_DUAL_FLASH 2014-01-12 21:40:22 +05:30
sf_internal.h sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00
sf_ops.c linux/kernel.h: sync min, max, min3, max3 macros with Linux 2014-11-23 06:48:30 -05:00
sf_params.c dm: Add spi.h header to a few files 2014-10-22 10:36:47 -06:00
sf_probe.c dm: Convert spi_flash_probe() and 'sf probe' to use driver model 2014-10-22 10:36:50 -06:00
spi_spl_load.c sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00