serial: ar933x: Remove unneeded static structure
authorLino Sanfilippo <l.sanfilippo@kunbus.com>
Sun, 7 Apr 2024 00:27:09 +0000 (02:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Apr 2024 15:07:10 +0000 (17:07 +0200)
commitfff4a5d5609db86ccdf1cf5791b7651b7f6a9b19
treec86b6d53b42c5ea2c9e4ced569d992ca60adb91b
parent384fa8647dc55ab47515bbb76ebda37b2350e5b3
serial: ar933x: Remove unneeded static structure

In case that no RTS GPIO is available do not use a dedicated nullified
serial_rs485 struct to disable RS485 support, but simply delete the
SER_RS485_ENABLED flag in the ports rs485_supported struct.
This make the structure superfluous and it can be removed.

Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>
Link: https://lore.kernel.org/r/20240407002709.16224-5-l.sanfilippo@kunbus.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/ar933x_uart.c