]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: Introduce uart_console_enabled() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 14 Feb 2020 11:43:32 +0000 (13:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 16:34:18 +0000 (08:34 -0800)
commit46caba17c003e307f1c0f1b0577300540cbab4cc
tree6260f3be45131de761bcf078899dc6424ad9c266
parentc91a572af2a4e777a3186f4b77ce619c491bcb2c
serial: core: Introduce uart_console_enabled() helper

Introduce uart_console_enabled() helper which checks port to be console
and console is registered in the list.

Note, this helper will be used in the future as well.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200214114339.53897-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c