serial: exar: added a exar_get_nr_ports function
authorParker Newman <pnewman@connecttech.com>
Wed, 17 Apr 2024 20:31:24 +0000 (16:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Apr 2024 06:23:50 +0000 (08:23 +0200)
commit477f6ee694fbd07047fecd37a9992bbe22a36323
treec77ecc9cfb567f6de48e228ba34c893ba6d0990b
parentc69fddf12ffcf375d24ccc32c94546d56b1ba2e8
serial: exar: added a exar_get_nr_ports function

Moved code for getting number of ports from exar_pci_probe() to a
separate exar_get_nr_ports() function. CTI specific code will be added
in another patch in this series.

Signed-off-by: Parker Newman <pnewman@connecttech.com>
Link: https://lore.kernel.org/r/33f2bf66bc334573c10cf670a299ecef0b7264bc.1713382717.git.pnewman@connecttech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_exar.c