From c0beed6de1c87f19357c20582b8d3a87db3c7794 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Thu, 21 Jan 2016 00:29:03 +0000 Subject: [PATCH] MdeModulePkg: SerialDxe: lay out mSerialIoMode initializer more nicely This patch doesn't change behavior; it only modifies whitespace and comments. Cc: Ard Biesheuvel Cc: Ryan Harkin Cc: Leif Lindholm Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Tested-by: Ard Biesheuvel Reviewed-by: Ard Biesheuvel Tested-by: Ryan Harkin Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19699 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SerialDxe/SerialIo.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/MdeModulePkg/Universal/SerialDxe/SerialIo.c b/MdeModulePkg/Universal/SerialDxe/SerialIo.c index de928d1719..489a4a201a 100644 --- a/MdeModulePkg/Universal/SerialDxe/SerialIo.c +++ b/MdeModulePkg/Universal/SerialDxe/SerialIo.c @@ -181,13 +181,16 @@ SERIAL_DEVICE_PATH mSerialDevicePath = { // Template used to initialize the Serial IO protocols. // EFI_SERIAL_IO_MODE mSerialIoMode = { - 0, // ControlMask - 0, // Timeout - 0, // BaudRate - 1, // ReceiveFifoDepth - 0, // DataBits - 0, // Parity - 0 // StopBits + // + // value field set in SerialDxeInitialize()? + //--------- ------------------- ----------------------------- + 0, // ControlMask + 0, // Timeout + 0, // BaudRate yes + 1, // ReceiveFifoDepth + 0, // DataBits yes + 0, // Parity yes + 0 // StopBits yes }; EFI_SERIAL_IO_PROTOCOL mSerialIoTemplate = {