summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@kernel.org>2023-07-31 11:00:01 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-31 17:16:21 +0200
commitfe61b57fc0f27a7df81a1a355defb8ddcb9731cb (patch)
treeaf006a16def3e21005ff81be2493d59f815b3241
parent0e0a0380fd40d7230b6ca2c67810017ab03a1d0a (diff)
downloadlinux-stable-fe61b57fc0f27a7df81a1a355defb8ddcb9731cb.tar.gz
linux-stable-fe61b57fc0f27a7df81a1a355defb8ddcb9731cb.tar.bz2
linux-stable-fe61b57fc0f27a7df81a1a355defb8ddcb9731cb.zip
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) <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20230731090002.15680-7-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/synclink_gt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c
index 381b2e22fa96..fe53e9c2c9b4 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,