serial: 8250_rt288x: Remove unnecessary UART_REG_UNMAPPED
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 11 May 2023 12:10:29 +0000 (15:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 May 2023 10:47:26 +0000 (19:47 +0900)
commit72fc578b220c417787384ac7c3e235e98f218be6
tree47b649fa1032960120fb0f3347b48a28df54d8b0
parent33e3b0eb755074a870fd926ebd84de52e7302090
serial: 8250_rt288x: Remove unnecessary UART_REG_UNMAPPED

As unmapped registers are at the tail of the array, the ARRAY_SIZE()
condition will catch them just fine. No need to define special
value for them.

Convert the arrays to u8 as all entiries are now positive.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230511121029.13128-7-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_rt288x.c