coreboot/src/drivers
Julius Werner 7c712bbb6c Fix code that would trip -Wtype-limits
This patch fixes up all code that would throw a -Wtype-limits warning.
This sometimes involves eliminating unnecessary checks, adding a few odd
but harmless casts or just pragma'ing out the warning for a whole file
-- I tried to find the path of least resistance. I think the overall
benefit of the warning outweighs the occasional weirdness.

Change-Id: Iacd37eb1fad388d9db7267ceccb03e6dcf1ad0d2
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32537
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-05-06 10:32:15 +00:00
..
amd/agesa src: Use include <console/console.h> when appropriate 2019-04-23 10:01:21 +00:00
ams src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00
asmedia drivers/asmedia: Add ASPM blacklist 2018-04-27 09:17:52 +00:00
aspeed src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
dec/21143 device/pci: Fix PCI accessor headers 2019-03-01 20:32:15 +00:00
elog coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
emulation/qemu src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
generic src: Use include <console/console.h> when appropriate 2019-04-23 10:01:21 +00:00
gic device/mmio.h: Add include file for MMIO ops 2019-03-04 15:57:39 +00:00
i2c mb/google/sarien: Disable touch by strap pin GPP_B4 2019-04-24 15:51:22 +00:00
intel Fix code that would trip -Wtype-limits 2019-05-06 10:32:15 +00:00
ipmi src: Use 'include <string.h>' when appropriate 2019-03-20 20:27:51 +00:00
lenovo coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
maxim device/mmio.h: Add include file for MMIO ops 2019-03-04 15:57:39 +00:00
mrc_cache coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
net src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
parade src: Add missing include <stdint.h> 2018-11-01 11:25:07 +00:00
pc80 Fix code that would trip -Wtype-limits 2019-05-06 10:32:15 +00:00
ricoh/rce822 arch/io.h: Drop unnecessary include 2019-03-04 15:08:03 +00:00
siemens/nc_fpga src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
sil/3114 src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
smmstore src: Use 'include <string.h>' when appropriate 2019-03-20 20:27:51 +00:00
spi Fix code that would trip -Wtype-limits 2019-05-06 10:32:15 +00:00
ti src/drivers: Fix typo 2018-08-10 21:25:30 +00:00
tpm coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
uart coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
usb src: Use 'include <string.h>' when appropriate 2019-03-20 20:27:51 +00:00
vpd src/drivers/vpd: Remove unused VPD_DEBUG 2018-11-16 09:55:09 +00:00
xgi src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
xpowers/axp209 include/device: Split i2c.h into three 2017-08-18 15:33:29 +00:00