tty: serial: samsung: constify s3c24xx_serial_drv_data members
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Tue, 8 Mar 2022 08:09:17 +0000 (09:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 12:19:00 +0000 (13:19 +0100)
The driver data (struct s3c24xx_serial_drv_data) is never modified, so
also its members can be made const.  Except code style this has no
impact because the structure itself is always a const.

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-7-krzysztof.kozlowski@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c

index 872222e212f11c725485e00e83beec81cde95379..69503550b4018a9269ddb55576f447b4267c4049 100644 (file)
@@ -85,9 +85,9 @@ struct s3c24xx_uart_info {
 };
 
 struct s3c24xx_serial_drv_data {
-       struct s3c24xx_uart_info        info;
-       struct s3c2410_uartcfg          def_cfg;
-       unsigned int                    fifosize[CONFIG_SERIAL_SAMSUNG_UARTS];
+       const struct s3c24xx_uart_info  info;
+       const struct s3c2410_uartcfg    def_cfg;
+       const unsigned int              fifosize[CONFIG_SERIAL_SAMSUNG_UARTS];
 };
 
 struct s3c24xx_uart_dma {