From: Jiri Slaby Date: Mon, 31 Jul 2023 09:00:01 +0000 (+0200) Subject: tty: synclink_gt: make default_params const X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fe61b57fc0f27a7df81a1a355defb8ddcb9731cb;p=linux.git tty: synclink_gt: make default_params const default_params are only read, so move them from .data to .rodata using 'const'. Signed-off-by: Jiri Slaby (SUSE) Link: https://lore.kernel.org/r/20230731090002.15680-7-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c index 381b2e22fa96a..fe53e9c2c9b49 100644 --- a/drivers/tty/synclink_gt.c +++ b/drivers/tty/synclink_gt.c @@ -322,7 +322,7 @@ struct slgt_info { }; -static MGSL_PARAMS default_params = { +static const MGSL_PARAMS default_params = { .mode = MGSL_MODE_HDLC, .loopback = 0, .flags = HDLC_FLAG_UNDERRUN_ABORT15,