Skip to content

Commit 5d18bec

Browse files
krzkgregkh
authored andcommitted
tty: serial: samsung: constify UART name
The UART name from driver data holds only string literals. 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-6-krzysztof.kozlowski@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 97a6cfe commit 5d18bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/samsung_tty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ enum s3c24xx_port_type {
6363
};
6464

6565
struct s3c24xx_uart_info {
66-
char *name;
66+
const char *name;
6767
enum s3c24xx_port_type type;
6868
unsigned int port_type;
6969
unsigned int fifosize;

0 commit comments

Comments
 (0)