coreboot-kgpe-d16/src/mainboard/amd/persimmon
Paul Menzel d189229b45 AMD Llano, Brazos boards: Use sizeof(var) to get its size
Change `sizeof(type) * n`, where n is the number of array
elements, to `sizeof(variable)` to directly get the size of the
variable (struct, array). Determining the size by counting array
elements is error prone and unnecessary.

Rudolf Marek’s patch »ASUS F2A85-M: Correct and clean up PCIe
config« [1] contains the same change and is ported over. In
the commit message Rudolf makes the following comment.

»Not sure why the copy is needed instead of direct reference.
Maybe it has something to do with CAR?«

Testing on the ASRock E350M1, no regressions were noticed.

[1] http://review.coreboot.org/#/c/3194/

Change-Id: I123031b3819a10c9c85577fdca96c70d9c992e87
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/3248
Tested-by: build bot (Jenkins)
Reviewed-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
2013-05-30 18:10:45 +02:00
..
acpi Persimmon/Fam14/SB800 DSDT: Split into common areas 2013-04-11 21:48:27 +02:00
acpi_tables.c AMD Fam14 boards: Unify acpi_table.c by mainly using Inagua’s one 2013-02-21 23:15:14 +01:00
agesawrapper.c GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
agesawrapper.h Whitespace: Replace tab character in license text with two spaces 2013-02-20 23:30:45 +01:00
BiosCallOuts.c AMD Persimmon: Use SPD read code from F14 wrapper 2013-03-07 18:29:38 +01:00
BiosCallOuts.h Persimmon: Fix warning, enable warnings as errors 2013-02-25 18:48:21 +01:00
buildOpts.c Whitespace: Replace tab character in license text with two spaces 2013-02-20 23:30:45 +01:00
cmos.layout GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
devicetree.cb AMD Persimmon: Use SPD read code from F14 wrapper 2013-03-07 18:29:38 +01:00
dsdt.asl Persimmon/Fam14/SB800 DSDT: Split into common areas 2013-04-11 21:48:27 +02:00
get_bus_conf.c Whitespace: Replace tab character in license text with two spaces 2013-02-20 23:30:45 +01:00
irq_tables.c GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
Kconfig AMD: Reduce stack size from 64 KB to the default of 4 KB 2013-05-09 20:19:24 +02:00
mainboard.c AMD Persimmon: mainboard.c: Make comment generic to reduce difference 2013-03-08 22:23:10 +01:00
Makefile.inc AMD Persimmon: Use SPD read code from F14 wrapper 2013-03-07 18:29:38 +01:00
mptable.c Whitespace: Replace tab character in license text with two spaces 2013-02-20 23:30:45 +01:00
OptionsIds.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
platform_cfg.h AMD Persimmon, LiPPERT Fam14: Fix typo code*c* in comment 2013-03-03 22:36:39 +01:00
PlatformGnbPcie.c AMD Llano, Brazos boards: Use sizeof(var) to get its size 2013-05-30 18:10:45 +02:00
PlatformGnbPcieComplex.h Whitespace: Replace tab character in license text with two spaces 2013-02-20 23:30:45 +01:00
reset.c x86: Unify arch/io.h and arch/romcc_io.h 2013-03-22 00:00:09 +01:00
romstage.c copy_and_run: drop boot_complete parameter 2013-05-08 18:24:23 +02:00