From 6e85378a38cebf9b437bc2b5c22dc1ba58161bd2 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Thu, 21 May 2026 14:16:48 -0400 Subject: serial: core: add uart_iotype_mmio/io helper functions To help simplify code that check on the io type mode of the port. Signed-off-by: Hugo Villeneuve Link: https://patch.msgid.link/20260521-tty-upio-v3-2-bf74567994a0@dimonoff.com Signed-off-by: Greg Kroah-Hartman --- include/linux/serial_core.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/linux') diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index bdc214386e4a..3cfde1af12fe 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -1338,4 +1338,8 @@ static inline int uart_handle_break(struct uart_port *port) !((cflag) & CLOCAL)) int uart_get_rs485_mode(struct uart_port *port); + +bool uart_iotype_mmio(enum uart_iotype iotype); +bool uart_iotype_io(enum uart_iotype iotype); + #endif /* LINUX_SERIAL_CORE_H */ -- cgit v1.2.3