coreboot/src/superio
Patrick Georgi e166782f39 Clean up #ifs
Replace #if CONFIG_FOO==1 with #if CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*1[[:space:]]*\$,#if \1," {} +

Replace #if (CONFIG_FOO==1) with #if CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*(\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*1)[[:space:]]*\$,#if \1," {} +

Replace #if CONFIG_FOO==0 with #if !CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*0[[:space:]]*\$,#if \!\1," {} +

Replace #if (CONFIG_FOO==0) with #if !CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*(\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*0)[[:space:]]*\$,#if \!\1," {} +

(and some manual changes to fix false positives)

Change-Id: Iac6ca7605a5f99885258cf1a9a2473a92de27c42
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/1004
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Martin Roth <martin@se-eng.com>
2012-05-08 00:34:34 +02:00
..
fintek remove trailing whitespace 2011-11-01 19:07:45 +01:00
intel Drop baud rate init to an arbitrary baud rate from Super I/O code. 2011-04-19 21:33:40 +00:00
ite Add support for ITE IT8772F SuperI/O chip 2012-04-02 18:40:10 +02:00
nsc remove trailing whitespace 2011-11-01 19:07:45 +01:00
nuvoton SIO: condition compile Nuvoton WPCM450 early_init.c 2012-02-05 17:45:08 +01:00
renesas add license headers to some trivial files and pc87427.h 2010-12-17 00:13:54 +00:00
serverengines add license headers to some trivial files and pc87427.h 2010-12-17 00:13:54 +00:00
smsc SMSC MEC1308: Fix ACPI code to work with newer IASL versions 2012-04-27 19:23:58 +02:00
via Clean up #ifs 2012-05-08 00:34:34 +02:00
winbond SIO: Winbond w83627dhg update 2012-02-16 21:08:50 +01:00
Kconfig This is for board Supermicro H8scm. The code was done by existing chips and 2011-03-27 16:33:09 +00:00
Makefile.inc This is for board Supermicro H8scm. The code was done by existing chips and 2011-03-27 16:33:09 +00:00