coreboot-kgpe-d16/src/southbridge/intel
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
..
bd82x6x sb/intel/common/spi: Add Baytrail/Braswell support 2019-11-26 11:47:27 +00:00
common src/: Remove g_ prefixes and _g suffixes from variables 2019-12-02 10:44:38 +00:00
i82371eb cpu/intel/slot_1: Move to C_ENVIRONMENT_BOOTBLOCK 2019-11-25 09:18:22 +00:00
i82801dx sb/intel/common: Properly guard USB debug 2019-11-18 07:08:35 +00:00
i82801gx sb/intel/common/spi: Add Baytrail/Braswell support 2019-11-26 11:47:27 +00:00
i82801ix sb/intel/common/spi: Add Baytrail/Braswell support 2019-11-26 11:47:27 +00:00
i82801jx sb/intel/common/spi: Add Baytrail/Braswell support 2019-11-26 11:47:27 +00:00
i82870 devicetree: Fix improper use of chip_operations 2019-10-04 16:29:31 +00:00
ibexpeak sb/intel/common/spi: Add Baytrail/Braswell support 2019-11-26 11:47:27 +00:00
lynxpoint {northbridge,soc,southbridge}: Don't use both of _ADR and _HID 2019-11-29 19:23:05 +00:00