diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-22 19:30:18 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:40 -0700 |
commit | d30c7209dfb4c6e4f38f8b42354e44885b53f301 (patch) | |
tree | c530f264e978855ea1793787015a6051cf11884f /drivers/serial/serial_omap.c | |
parent | aa88ac884c998ab521b3a433e963bc001d31e5d8 (diff) | |
download | u-boot-d30c7209dfb4c6e4f38f8b42354e44885b53f301.zip u-boot-d30c7209dfb4c6e4f38f8b42354e44885b53f301.tar.gz u-boot-d30c7209dfb4c6e4f38f8b42354e44885b53f301.tar.bz2 |
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 'drivers/serial/serial_omap.c')
-rw-r--r-- | drivers/serial/serial_omap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/serial/serial_omap.c b/drivers/serial/serial_omap.c index 2f38e1b..c235215 100644 --- a/drivers/serial/serial_omap.c +++ b/drivers/serial/serial_omap.c @@ -66,7 +66,7 @@ static inline int serial_in_shift(void *addr, int shift) static inline void _debug_uart_init(void) { - struct NS16550 *com_port = (struct NS16550 *)CONFIG_DEBUG_UART_BASE; + struct ns16550 *com_port = (struct ns16550 *)CONFIG_DEBUG_UART_BASE; int baud_divisor; baud_divisor = ns16550_calc_divisor(com_port, CONFIG_DEBUG_UART_CLOCK, @@ -85,7 +85,7 @@ static inline void _debug_uart_init(void) static inline void _debug_uart_putc(int ch) { - struct NS16550 *com_port = (struct NS16550 *)CONFIG_DEBUG_UART_BASE; + struct ns16550 *com_port = (struct ns16550 *)CONFIG_DEBUG_UART_BASE; while (!(serial_din(&com_port->lsr) & UART_LSR_THRE)) ; @@ -160,7 +160,7 @@ U_BOOT_DRIVER(omap_serial) = { .of_to_plat = omap_serial_of_to_plat, .plat_auto = sizeof(struct ns16550_plat), #endif - .priv_auto = sizeof(struct NS16550), + .priv_auto = sizeof(struct ns16550), .probe = ns16550_serial_probe, .ops = &ns16550_serial_ops, #if !CONFIG_IS_ENABLED(OF_CONTROL) |