tty: serial: samsung_tty: Add s3c24xx_port_type
authorHector Martin <marcan@marcan.st>
Thu, 4 Mar 2021 21:38:55 +0000 (06:38 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:10 +0000 (09:34 +0100)
commitaaf144059ba474229b6475866ec8cf16a5780871
tree3a9eecf9637c1c6dbe21f8c5e7232e7cc9cb3b0e
parent646891638301dad90e4dab9bc23e939575ad8012
tty: serial: samsung_tty: Add s3c24xx_port_type

This decouples the TTY layer PORT_ types, which are exposed to
userspace, from the driver-internal flag of what kind of port this is.

This removes s3c24xx_serial_has_interrupt_mask, which was just checking
for a specific type anyway.

Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Tested-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210304213902.83903-21-marcan@marcan.st
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c