diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-05-19 09:21:51 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-20 16:59:14 +0200 |
commit | cd256b068f80e8b4a1eccd73527b67b3eb50f7ad (patch) | |
tree | 80acb829c3c81753addb9fdafdbe7d2bf9a37da7 /include/linux/serial_8250.h | |
parent | b8be5db573b822920b0f6230498d900752bede17 (diff) | |
download | linux-stable-cd256b068f80e8b4a1eccd73527b67b3eb50f7ad.tar.gz linux-stable-cd256b068f80e8b4a1eccd73527b67b3eb50f7ad.tar.bz2 linux-stable-cd256b068f80e8b4a1eccd73527b67b3eb50f7ad.zip |
tty/serial: make port of serial8250_register_8250_port const
After the previous patch, we can make port passed to
serial8250_find_match_or_unused const. And then we can make const also
port of serial8250_register_8250_port.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210519072153.3859-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serial_8250.h')
-rw-r--r-- | include/linux/serial_8250.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/serial_8250.h b/include/linux/serial_8250.h index 9e655055112d..5db211f43b29 100644 --- a/include/linux/serial_8250.h +++ b/include/linux/serial_8250.h @@ -146,7 +146,7 @@ static inline struct uart_8250_port *up_to_u8250p(struct uart_port *up) return container_of(up, struct uart_8250_port, port); } -int serial8250_register_8250_port(struct uart_8250_port *); +int serial8250_register_8250_port(const struct uart_8250_port *); void serial8250_unregister_port(int line); void serial8250_suspend_port(int line); void serial8250_resume_port(int line); |