tty/serial: clean up uart_match_port
authorJiri Slaby <jslaby@suse.cz>
Wed, 19 May 2021 07:21:50 +0000 (09:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 May 2021 14:59:14 +0000 (16:59 +0200)
commitb8be5db573b822920b0f6230498d900752bede17
treeda5d44b2b38b388b869d3dd43ef80e5f3073e6aa
parent4bc2bd5aefd60a2837a20b1e88e89eaaa677d229
tty/serial: clean up uart_match_port

* make parameters const (as they are only read)
* return bool (as comparison results are returned)
* add \n before final return

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210519072153.3859-1-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c
include/linux/serial_core.h