]> git.sur5r.net Git - u-boot/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)
commit42f9f915c2b7aeac222c93a7f7085d9838722efc
tree0c0467f492b69fa9aff8db01034af8bc6b060cdb
parentef3fc42ded96403284e5e9bf37b63d332aedd7b4
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