tty/serial: make port of serial8250_register_8250_port const
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 May 2021 07:21:51 +0000 (09:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 May 2021 14:59:14 +0000 (16:59 +0200)
commitcd256b068f80e8b4a1eccd73527b67b3eb50f7ad
tree80acb829c3c81753addb9fdafdbe7d2bf9a37da7
parentb8be5db573b822920b0f6230498d900752bede17
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>
drivers/tty/serial/8250/8250_core.c
include/linux/serial_8250.h