serial: 8250: dw: Move definitions to the shared header
authorPhil Edworthy <phil.edworthy@renesas.com>
Fri, 22 Apr 2022 18:06:07 +0000 (20:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2022 11:25:46 +0000 (13:25 +0200)
commitd9666dfb314e1ffd6eb9c3c4243fe3e094c047a7
treec6919cfb979c77d8680c877f2cbce5733c1ad395
parent5390e7f46b9d5546d45a83e6463bc656678b1d0e
serial: 8250: dw: Move definitions to the shared header

Move the per-device structure and a helper out of the main .c file, into
a shared header as they will both be reused from another .c file.

There is no functional change.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
[miquel.raynal@bootlin.com: Extracted from a bigger change]
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20220422180615.9098-2-miquel.raynal@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c
drivers/tty/serial/8250/8250_dwlib.h