]> git.baikalelectronics.ru Git - kernel.git/commit
serial: pic32_uart: Utilize uart_console_enabled()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 6 Aug 2022 22:56:42 +0000 (01:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 11:27:55 +0000 (13:27 +0200)
commit3afb9eed80f29b3c91a579db9017b7f96bfc1d55
tree5f8f5f4152d4a75c67d8ce191c85f8a2db26e4a4
parente6d6d851a9a4c2d006a362840b099db42a12790c
serial: pic32_uart: Utilize uart_console_enabled()

The serial core already provides a helper to check if the given port
is an enabled console. Utilize it instead of open coded variant.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220806225643.40897-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pic32_uart.c