]> git.baikalelectronics.ru Git - uboot.git/commit
console: Unify the check for a serial console
authorSimon Glass <sjg@chromium.org>
Thu, 27 Jul 2017 15:31:03 +0000 (09:31 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 31 Jul 2017 16:21:40 +0000 (12:21 -0400)
commitac6837e83649b655563f63c314dbec2ad1cce04c
tree0c0467f492b69fa9aff8db01034af8bc6b060cdb
parent571e6136963cc4508d5489f69b2cf858b93a4878
console: Unify the check for a serial console

Put the check for whether a console is a serial device in a function so
that we can share the code in the two places that use it.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/console.c