[PATCH] serial: core: display 32 for MEM32 and MEM32BE UPIO types

Hugo Villeneuve posted 1 patch 1 week, 1 day ago
drivers/tty/serial/serial_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] serial: core: display 32 for MEM32 and MEM32BE UPIO types
Posted by Hugo Villeneuve 1 week, 1 day ago
From: Hugo Villeneuve <hvilleneuve@dimonoff.com>

Displaying "32be" is wrong for UPIO_MEM32. Fix and simplify by displaying
"32" for MEM32 and MEM32BE UPIO types.

Fixes: 86305190f307 ("serial: uniformize serial port I/O infos display")
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
---
 drivers/tty/serial/serial_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index 06d7f44643d61..edd1e7be2a5c7 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -2492,7 +2492,7 @@ static const char *uart_get_mmio_width(struct uart_port *port)
 		return "16";
 	case UPIO_MEM32:
 	case UPIO_MEM32BE:
-		return "32be";
+		return "32";
 	case UPIO_AU:
 	case UPIO_MEM:
 	default:

base-commit: da7b5fd4e17f8e44c5590f2d603c01d499f056e6
-- 
2.47.3