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

Hugo Villeneuve <[email protected]>
Newsgroups org.kernel.vger.linux-serial,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
From: Hugo Villeneuve <[email protected]>

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 <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.