summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-22 19:30:18 -0700
committerSimon Glass <sjg@chromium.org>2021-01-05 12:24:40 -0700
commitd30c7209dfb4c6e4f38f8b42354e44885b53f301 (patch)
treec530f264e978855ea1793787015a6051cf11884f /lib
parentaa88ac884c998ab521b3a433e963bc001d31e5d8 (diff)
downloadu-boot-d30c7209dfb4c6e4f38f8b42354e44885b53f301.tar.gz
u-boot-d30c7209dfb4c6e4f38f8b42354e44885b53f301.tar.xz
u-boot-d30c7209dfb4c6e4f38f8b42354e44885b53f301.zip
serial: Update NS16550_t and struct NS16550
Typedefs should not be used in U-Boot and structs should be lower case. Update the code to use struct ns16550 consistently. Put a header guard on the file while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi/efi_stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi/efi_stub.c b/lib/efi/efi_stub.c
index 7d650d512e..b3393e47fa 100644
--- a/lib/efi/efi_stub.c
+++ b/lib/efi/efi_stub.c
@@ -67,7 +67,7 @@ void putc(const char ch)
putc('\r');
if (use_uart) {
- NS16550_t com_port = (NS16550_t)0x3f8;
+ struct ns16550 *com_port = (struct ns16550 *)0x3f8;
while ((inb((ulong)&com_port->lsr) & UART_LSR_THRE) == 0)
;