coreboot/src/drivers/spi
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 src/[arch-lib]: change "unsigned" to "unsigned int" 2019-10-27 21:08:39 +00:00
tpm src/: Remove g_ prefixes and _g suffixes from variables 2019-12-02 10:44:38 +00:00
adesto.c AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
amic.c AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
atmel.c AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
bitbang.c AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
boot_device_rw_nommap.c drivers/spi/boot_device_rw_nommap.c: Drop CAR_GLOBAL_MIGRATION support 2019-11-29 11:01:23 +00:00
cbfs_spi.c Remove MIPS architecture 2019-11-20 10:10:48 +00:00
eon.c AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
flashconsole.c src/: Remove g_ prefixes and _g suffixes from variables 2019-12-02 10:44:38 +00:00
gigadevice.c AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
Kconfig drivers/spi: add drivers for sdcard mounted on the spi bus 2019-11-14 11:38:38 +00:00
macronix.c AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
Makefile.inc drivers/spi: add drivers for sdcard mounted on the spi bus 2019-11-14 11:38:38 +00:00
spansion.c AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
spi-generic.c src/{device,drivers}: Use 'include <stdlib.h>' when appropriate 2019-10-27 17:52:05 +00:00
spi_flash.c drivers/spi/spi_flash.c: Drop CAR_GLOBAL_MIGRATION support 2019-11-29 09:16:46 +00:00
spi_flash_internal.h AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
spi_sdcard.c drivers/spi: add drivers for sdcard mounted on the spi bus 2019-11-14 11:38:38 +00:00
spi_winbond.h AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
spiconsole.c AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
sst.c AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
stmicro.c AUTHORS: Move src/drivers/[l*-v*] copyrights into AUTHORS file 2019-10-22 12:55:19 +00:00
winbond.c spi: Add Winbond W25Q128JW_DTR SPI ROM support 2019-11-13 09:13:25 +00:00