Skip to content

Commit 8eea61c

Browse files
krzkgregkh
authored andcommitted
tty: serial: samsung: constify s3c24xx_serial_drv_data members
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>
1 parent 5d18bec commit 8eea61c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/tty/serial/samsung_tty.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ struct s3c24xx_uart_info {
8585
};
8686

8787
struct s3c24xx_serial_drv_data {
88-
struct s3c24xx_uart_info info;
89-
struct s3c2410_uartcfg def_cfg;
90-
unsigned int fifosize[CONFIG_SERIAL_SAMSUNG_UARTS];
88+
const struct s3c24xx_uart_info info;
89+
const struct s3c2410_uartcfg def_cfg;
90+
const unsigned int fifosize[CONFIG_SERIAL_SAMSUNG_UARTS];
9191
};
9292

9393
struct s3c24xx_uart_dma {

0 commit comments

Comments
 (0)