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)
commit7a49955af1441dd58d27c1ab59205d83ec42907f
tree6260f3be45131de761bcf078899dc6424ad9c266
parent02042a4cf472a1362e39da72a1d992d59a58a0ab
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