tty: serial: samsung: embed s3c24xx_uart_info in parent structure
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Tue, 8 Mar 2022 08:09:12 +0000 (09:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 12:18:59 +0000 (13:18 +0100)
commitd3a46d0d83f94b5780bcaaea4b4ddbe7c110b35c
tree65ac0ab9b3a41579f2e4512d1b017f64b7c1418a
parentdffa58b64cca6ca266bc0310d8e6b27abd1f8048
tty: serial: samsung: embed s3c24xx_uart_info in parent structure

Embed "struct s3c24xx_uart_info" directly as a member of "struct
s3c24xx_serial_drv_data" instead of keeping it as a pointer.  This makes
the code clearer (obvious ownership of "struct s3c24xx_serial_drv_data")
and saves one pointer.

Tested-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20220308080919.152715-2-krzysztof.kozlowski@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c