summaryrefslogtreecommitdiff
path: root/src/northbridge/amd/pi
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2016-10-03 21:57:21 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2016-10-04 14:31:53 +0200
commit0d4b11a4f8ccf64fb1a8272a0cd2e4833e54d90e (patch)
tree7152df06c4cfe90b71d1c6e1eeac2ad65da09774 /src/northbridge/amd/pi
parent18cd8a64a46b85af5bf284165ce412188fc31948 (diff)
downloadcoreboot-0d4b11a4f8ccf64fb1a8272a0cd2e4833e54d90e.tar.xz
src/northbridge: Remove whitespace after sizeof
Change-Id: Iea0352f85f4d5f47fc906edbe625e7bbf3f03afd Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/16863 Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/northbridge/amd/pi')
-rw-r--r--src/northbridge/amd/pi/00630F01/dimmSpd.c2
-rw-r--r--src/northbridge/amd/pi/00630F01/northbridge.c2
-rw-r--r--src/northbridge/amd/pi/00730F01/dimmSpd.c2
-rw-r--r--src/northbridge/amd/pi/00730F01/northbridge.c2
-rw-r--r--src/northbridge/amd/pi/agesawrapper.c30
5 files changed, 19 insertions, 19 deletions
diff --git a/src/northbridge/amd/pi/00630F01/dimmSpd.c b/src/northbridge/amd/pi/00630F01/dimmSpd.c
index 50eee51864..eba0449ee1 100644
--- a/src/northbridge/amd/pi/00630F01/dimmSpd.c
+++ b/src/northbridge/amd/pi/00630F01/dimmSpd.c
@@ -24,7 +24,7 @@
#include "northbridge/amd/pi/dimmSpd.h"
-#define DIMENSION(array)(sizeof (array)/ sizeof (array [0]))
+#define DIMENSION(array)(sizeof(array)/ sizeof(array [0]))
AGESA_STATUS AmdMemoryReadSPD (UINT32 unused1, UINT32 unused2, AGESA_READ_SPD_PARAMS *info)
{
diff --git a/src/northbridge/amd/pi/00630F01/northbridge.c b/src/northbridge/amd/pi/00630F01/northbridge.c
index 8a40280938..6769d111b0 100644
--- a/src/northbridge/amd/pi/00630F01/northbridge.c
+++ b/src/northbridge/amd/pi/00630F01/northbridge.c
@@ -380,7 +380,7 @@ static void set_resource(device_t dev, struct resource *resource, u32 nodeid)
set_mmio_addr_reg(nodeid, link_num, reg, (resource->index >>24), rbase>>8, rend>>8, node_nums) ;// [39:8]
}
resource->flags |= IORESOURCE_STORED;
- snprintf(buf, sizeof (buf), " <node %x link %x>",
+ snprintf(buf, sizeof(buf), " <node %x link %x>",
nodeid, link_num);
report_resource_stored(dev, resource, buf);
}
diff --git a/src/northbridge/amd/pi/00730F01/dimmSpd.c b/src/northbridge/amd/pi/00730F01/dimmSpd.c
index 1d9aa3ab2b..9726042879 100644
--- a/src/northbridge/amd/pi/00730F01/dimmSpd.c
+++ b/src/northbridge/amd/pi/00730F01/dimmSpd.c
@@ -24,7 +24,7 @@
#include "northbridge/amd/pi/dimmSpd.h"
-#define DIMENSION(array)(sizeof (array)/ sizeof (array [0]))
+#define DIMENSION(array)(sizeof(array)/ sizeof(array [0]))
AGESA_STATUS AmdMemoryReadSPD (UINT32 unused1, UINT32 unused2, AGESA_READ_SPD_PARAMS *info)
{
diff --git a/src/northbridge/amd/pi/00730F01/northbridge.c b/src/northbridge/amd/pi/00730F01/northbridge.c
index b778da5903..334cdb215c 100644
--- a/src/northbridge/amd/pi/00730F01/northbridge.c
+++ b/src/northbridge/amd/pi/00730F01/northbridge.c
@@ -394,7 +394,7 @@ static void set_resource(device_t dev, struct resource *resource, u32 nodeid)
set_mmio_addr_reg(nodeid, link_num, reg, (resource->index >>24), rbase>>8, rend>>8, node_nums) ;// [39:8]
}
resource->flags |= IORESOURCE_STORED;
- snprintf(buf, sizeof (buf), " <node %x link %x>",
+ snprintf(buf, sizeof(buf), " <node %x link %x>",
nodeid, link_num);
report_resource_stored(dev, resource, buf);
}
diff --git a/src/northbridge/amd/pi/agesawrapper.c b/src/northbridge/amd/pi/agesawrapper.c
index b1e514a145..8e16e750d0 100644
--- a/src/northbridge/amd/pi/agesawrapper.c
+++ b/src/northbridge/amd/pi/agesawrapper.c
@@ -52,12 +52,12 @@ AGESA_STATUS agesawrapper_amdinitreset(void)
LibAmdMemFill (&AmdParamStruct,
0,
- sizeof (AMD_INTERFACE_PARAMS),
+ sizeof(AMD_INTERFACE_PARAMS),
&(AmdParamStruct.StdHeader));
LibAmdMemFill (&AmdResetParams,
0,
- sizeof (AMD_RESET_PARAMS),
+ sizeof(AMD_RESET_PARAMS),
&(AmdResetParams.StdHeader));
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
@@ -91,7 +91,7 @@ AGESA_STATUS agesawrapper_amdinitearly(void)
LibAmdMemFill (&AmdParamStruct,
0,
- sizeof (AMD_INTERFACE_PARAMS),
+ sizeof(AMD_INTERFACE_PARAMS),
&(AmdParamStruct.StdHeader));
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
@@ -121,7 +121,7 @@ AGESA_STATUS agesawrapper_amdinitpost(void)
LibAmdMemFill (&AmdParamStruct,
0,
- sizeof (AMD_INTERFACE_PARAMS),
+ sizeof(AMD_INTERFACE_PARAMS),
&(AmdParamStruct.StdHeader));
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
@@ -179,7 +179,7 @@ AGESA_STATUS agesawrapper_amdinitenv(void)
LibAmdMemFill (&AmdParamStruct,
0,
- sizeof (AMD_INTERFACE_PARAMS),
+ sizeof(AMD_INTERFACE_PARAMS),
&(AmdParamStruct.StdHeader));
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
@@ -247,7 +247,7 @@ AGESA_STATUS agesawrapper_amdinitmid(void)
LibAmdMemFill (&AmdParamStruct,
0,
- sizeof (AMD_INTERFACE_PARAMS),
+ sizeof(AMD_INTERFACE_PARAMS),
&(AmdParamStruct.StdHeader));
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
@@ -285,7 +285,7 @@ AGESA_STATUS agesawrapper_amdinitlate(void)
LibAmdMemFill (&AmdParamStruct,
0,
- sizeof (AMD_INTERFACE_PARAMS),
+ sizeof(AMD_INTERFACE_PARAMS),
&(AmdParamStruct.StdHeader));
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
@@ -341,7 +341,7 @@ AGESA_STATUS agesawrapper_amdlaterunaptask (
LibAmdMemFill (&ApExeParams,
0,
- sizeof (AP_EXE_PARAMS),
+ sizeof(AP_EXE_PARAMS),
&(ApExeParams.StdHeader));
ApExeParams.StdHeader.AltImageBasePtr = 0;
@@ -371,7 +371,7 @@ AGESA_STATUS agesawrapper_amdinitresume(void)
LibAmdMemFill (&AmdParamStruct,
0,
- sizeof (AMD_INTERFACE_PARAMS),
+ sizeof(AMD_INTERFACE_PARAMS),
&(AmdParamStruct.StdHeader));
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESUME;
@@ -416,7 +416,7 @@ AGESA_STATUS agesawrapper_fchs3earlyrestore(void)
LibAmdMemFill (&FchParams,
0,
- sizeof (FchParams),
+ sizeof(FchParams),
&StdHeader);
FchParams.StdHeader = &StdHeader;
@@ -439,7 +439,7 @@ AGESA_STATUS agesawrapper_amds3laterestore(void)
agesawrapper_amdinitcpuio();
LibAmdMemFill (&AmdS3LateParams,
0,
- sizeof (AMD_S3LATE_PARAMS),
+ sizeof(AMD_S3LATE_PARAMS),
&(AmdS3LateParams.StdHeader));
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
AmdInterfaceParams.AllocationMethod = ByHost;
@@ -447,7 +447,7 @@ AGESA_STATUS agesawrapper_amds3laterestore(void)
AmdInterfaceParams.NewStructPtr = &AmdS3LateParams;
AmdInterfaceParams.StdHeader.CalloutPtr = &GetBiosCallout;
AmdS3LateParamsPtr = &AmdS3LateParams;
- AmdInterfaceParams.NewStructSize = sizeof (AMD_S3LATE_PARAMS);
+ AmdInterfaceParams.NewStructSize = sizeof(AMD_S3LATE_PARAMS);
AmdCreateStruct (&AmdInterfaceParams);
@@ -485,7 +485,7 @@ AGESA_STATUS agesawrapper_fchs3laterestore(void)
LibAmdMemFill (&FchParams,
0,
- sizeof (FchParams),
+ sizeof(FchParams),
&StdHeader);
FchParams.StdHeader = &StdHeader;
@@ -516,7 +516,7 @@ AGESA_STATUS agesawrapper_amdS3Save(void)
LibAmdMemFill (&AmdInterfaceParams,
0,
- sizeof (AMD_INTERFACE_PARAMS),
+ sizeof(AMD_INTERFACE_PARAMS),
&(AmdInterfaceParams.StdHeader));
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
@@ -576,7 +576,7 @@ AGESA_STATUS agesawrapper_amdreadeventlog (UINT8 HeapStatus)
LibAmdMemFill (&AmdEventParams,
0,
- sizeof (EVENT_PARAMS),
+ sizeof(EVENT_PARAMS),
&(AmdEventParams.StdHeader));
AmdEventParams.StdHeader.AltImageBasePtr = 0;