serial: lpc32xx: allow compile testing
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Aug 2019 14:40:37 +0000 (16:40 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 15 Aug 2019 19:34:02 +0000 (21:34 +0200)
commitffba29c9ebd0977dbf77bf6064776716a51b8ae5
treec6d42d43db9fd1800228073b61d4abc27485bbc9
parent35974a7cc23c5deb5597c0a42183172498c4a0a8
serial: lpc32xx: allow compile testing

The lpc32xx_loopback_set() function in hte lpc32xx_hs driver is the
one thing that relies on platform header files. Move that into the
core platform code so we only need a variable declaration for it,
and enable COMPILE_TEST building.

Link: https://lore.kernel.org/r/20190809144043.476786-12-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-lpc32xx/serial.c
drivers/tty/serial/lpc32xx_hs.c
include/linux/soc/nxp/lpc32xx-misc.h