coreboot-kgpe-d16/src/drivers
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
..
amd/agesa AGESA,binaryPI: Add compatibility wrapper for romstage entry 2019-11-30 08:15:30 +00:00
ams AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
asmedia AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
aspeed AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
crb security/tpm: Drop CAR_GLOBAL_MIGRATION support 2019-11-29 09:08:33 +00:00
dec/21143 AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
elog src/: Remove g_ prefixes and _g suffixes from variables 2019-12-02 10:44:38 +00:00
emulation/qemu src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
generic src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
gic AUTHORS: Move src/drivers/[a*-i*] copyrights into AUTHORS file 2019-10-22 12:55:10 +00:00
i2c src/: Remove g_ prefixes and _g suffixes from variables 2019-12-02 10:44:38 +00:00
intel soc/intel/{apl,cnl,dnv,skl}: Skip ucode loading by FSP-T 2019-11-26 11:55:10 +00:00
ipmi drivers/ipmi: Add IPMI get system GUID support 2019-11-22 10:43:42 +00:00
lenovo AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
maxim AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
mrc_cache AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
net src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
parade src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
pc80 src/: Remove g_ prefixes and _g suffixes from variables 2019-12-02 10:44:38 +00:00
ricoh/rce822 AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
siemens/nc_fpga AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
sil/3114 AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
smmstore drivers/smmstore: Fix some issues 2019-11-29 08:56:43 +00:00
spi src/: Remove g_ prefixes and _g suffixes from variables 2019-12-02 10:44:38 +00:00
ti AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
tpm AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
uart drivers/uart/oxpcie_early.c: Drop CAR_GLOBAL_MIGRATION support 2019-11-29 09:15:41 +00:00
usb drivers/usb/ehci_debug: Add x86_64 support 2019-12-02 07:45:38 +00:00
vpd src/: Remove g_ prefixes and _g suffixes from variables 2019-12-02 10:44:38 +00:00
wifi AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
xgi src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00