amd/common/psp: Convert structure init to C99

Use C99 designated initializers for the psp_notify_dram() buffer
structure.

Change-Id: I2e18b3a2c19b8fb17d0f654b16def52517538957
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/22847
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Marshall Dawson 2017-12-13 10:51:13 -07:00 committed by Martin Roth
parent 33c8773dfd
commit 66dd399ac2
1 changed files with 5 additions and 4 deletions

View File

@ -161,14 +161,15 @@ static int send_psp_command(u32 command, void *buffer)
*/
int psp_notify_dram(void)
{
struct mbox_default_buffer buffer;
int cmd_status;
struct mbox_default_buffer buffer = {
.header = {
.size = sizeof(buffer)
}
};
printk(BIOS_DEBUG, "PSP: Notify that DRAM is available... ");
buffer.header.size = sizeof(struct mbox_default_buffer);
buffer.header.status = 0; /* PSP does not report status for this cmd */
cmd_status = send_psp_command(MBOX_BIOS_CMD_DRAM_INFO, &buffer);
/* buffer's status shouldn't change but report it if it does */