coreboot-kgpe-d16/src/southbridge/amd/amd8111
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
..
ac97.c first round name simplification. drop the <component>_ prefix. 2010-12-08 05:42:47 +00:00
acpi.c Clean up #ifs 2012-05-08 00:34:34 +02:00
amd8111.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
amd8111.h get rid of even more fam10 and k8 warnings. 2010-07-08 00:37:23 +00:00
amd8111_smbus.h Added smbus block read/write for amd8111 2011-10-27 19:09:50 +02:00
bootblock.c Merge enable_rom.c files into bootblock.c files. 2010-12-09 18:09:14 +00:00
chip.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
early_ctrl.c first round name simplification. drop the <component>_ prefix. 2010-12-08 05:42:47 +00:00
early_smbus.c Added smbus block read/write for amd8111 2011-10-27 19:09:50 +02:00
ide.c first round name simplification. drop the <component>_ prefix. 2010-12-08 05:42:47 +00:00
Kconfig amd/amd8111: Move HAVE_HARD_RESET to southbridge 2012-02-17 19:00:14 +01:00
lpc.c first round name simplification. drop the <component>_ prefix. 2010-12-08 05:42:47 +00:00
Makefile.inc first round name simplification. drop the <component>_ prefix. 2010-12-08 05:42:47 +00:00
nic.c first round name simplification. drop the <component>_ prefix. 2010-12-08 05:42:47 +00:00
pci.c first round name simplification. drop the <component>_ prefix. 2010-12-08 05:42:47 +00:00
reset.c first round name simplification. drop the <component>_ prefix. 2010-12-08 05:42:47 +00:00
smbus.c first round name simplification. drop the <component>_ prefix. 2010-12-08 05:42:47 +00:00
usb.c first round name simplification. drop the <component>_ prefix. 2010-12-08 05:42:47 +00:00
usb2.c first round name simplification. drop the <component>_ prefix. 2010-12-08 05:42:47 +00:00