[PATCH 04/58] tty/serial: Migrate aspeed_vuart to use has_sysrq

Andrew Jeffery andrew at aj.id.au
Fri Dec 13 12:32:05 AEDT 2019

On Fri, 13 Dec 2019, at 10:36, Dmitry Safonov wrote:
> The SUPPORT_SYSRQ ifdeffery is not nice as:
> - May create misunderstanding about sizeof(struct uart_port) between
>   different objects
> - Prevents moving functions from serial_core.h
> - Reduces readability (well, it's ifdeffery - it's hard to follow)
> In order to remove SUPPORT_SYSRQ, has_sysrq variable has been added.
> Initialise it in driver's probe and remove ifdeffery.
> Cc: Andrew Jeffery <andrew at aj.id.au>
> Cc: Joel Stanley <joel at jms.id.au>
> Cc: linux-arm-kernel at lists.infradead.org
> Cc: linux-aspeed at lists.ozlabs.org
> Signed-off-by: Dmitry Safonov <dima at arista.com>

Acked-by: Andrew Jeffery <andrew at aj.id.au>

More information about the Linux-aspeed mailing list