coreboot-kgpe-d16/src/southbridge/intel/common
Patrick Georgi c9b13594eb src/: Remove g_ prefixes and _g suffixes from variables
These were often used to distinguish CAR_GLOBAL variables that weren't
directly usable. Since we're getting rid of this special case, also get
rid of the marker.

This change was created using coccinelle and the following script:
	@match@
	type T;
	identifier old =~ "^(g_.*|.*_g)$";
	@@
	old

	@script:python global_marker@
	old << match.old;
	new;
	@@
	new = old
	if old[0:2] == "g_":
	  new = new[2:]

	if new[-2:] == "_g":
	  new = new[:-2]

	coccinelle.new = new

	@@
	identifier match.old, global_marker.new;
	@@
	- old
	+ new

	@@
	type T;
	identifier match.old, global_marker.new;
	@@
	- T old;
	+ T new;

	@@
	type T;
	identifier match.old, global_marker.new;
	@@
	- T old
	+ T new
	 = ...;

There were some manual fixups: Some code still uses the global/local
variable naming scheme, so keep g_* there, and some variable names
weren't completely rewritten.

Change-Id: I4936ff9780a0d3ed9b8b539772bc48887f8d5eed
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37358
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
2019-12-02 10:44:38 +00:00
..
acpi sb/intel/common/platform.asl: Remove setting unused GNVS 2019-11-04 11:36:25 +00:00
firmware southbridge/intel: Add config option to validate firmware descriptor 2019-10-03 15:28:58 +00:00
acpi_pirq_gen.c
acpi_pirq_gen.h
finalize.c
finalize.h
gpio.c arch/x86: Replace some __SMM__ guards 2019-11-09 11:03:03 +00:00
gpio.h src/southbridge: change "unsigned" to "unsigned int" 2019-10-30 11:16:56 +00:00
Kconfig sb/intel/common/spi: Add Baytrail/Braswell support 2019-11-26 11:47:27 +00:00
madt.c
Makefile.inc sb/intel/common: Properly guard USB debug 2019-11-18 07:08:35 +00:00
pciehp.c
pciehp.h
pmbase.c arch/x86: Replace some __SMM__ guards 2019-11-09 11:03:03 +00:00
pmbase.h
pmclib.c
pmclib.h
pmutil.c southbridge: Remove not used #include <elog.h> 2019-09-12 13:15:40 +00:00
pmutil.h cpu/x86: Separate save_state struct headers 2019-08-13 13:59:05 +00:00
rcba.h
rcba_pirq.c
rcba_pirq.h
reset.c
rtc.c
rtc.h
smbus.c
smbus.h
smi.c soc/intel: Rename some SMM support functions 2019-08-15 06:55:59 +00:00
smihandler.c ELOG: Introduce elog_gsmi variants 2019-11-09 10:49:47 +00:00
spi.c src/: Remove g_ prefixes and _g suffixes from variables 2019-12-02 10:44:38 +00:00
spi.h
tco.h
usb_debug.c
watchdog.c nb/sb/cpu: Drop Intel Rangeley support 2019-11-21 06:38:45 +00:00