serial: stm32: change register's offset type from u8 to u16
authorValentin Caron <valentin.caron@foss.st.com>
Fri, 12 Jan 2024 09:52:59 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jan 2024 03:04:11 +0000 (19:04 -0800)
commit7be985bd7cd5c6c605ec710e691620b8afb983fd
tree0f7849e096c59123b17380fa75dedaa090de5d4a
parent7316888fa44f48bd00070290d2eb229f44a55135
serial: stm32: change register's offset type from u8 to u16

USART has registers above 0xff offset, so extend variable type to u16.
And change UNDEF_REG to 0xffff.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20240112095300.2004878-4-valentin.caron@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.h