serial: 8250_exar: Extract exar_get_platform() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 8 Jun 2021 14:42:38 +0000 (17:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 12:42:14 +0000 (14:42 +0200)
commit7d356a438b2466a3a9ca1b916aaf198d05f2b3e4
tree34118ba880ef7fd0a80bd6b25067d57090a51081
parente901000aa6d0b0d428839aa142c698825d76da7f
serial: 8250_exar: Extract exar_get_platform() helper

We would like to use DMI matching in other functions as well.
Hence, extract it as exar_get_platform() helper function.

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