diff options
author | Jiri Slaby <jirislaby@kernel.org> | 2023-07-31 11:00:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-07-31 17:16:21 +0200 |
commit | fe61b57fc0f27a7df81a1a355defb8ddcb9731cb (patch) | |
tree | af006a16def3e21005ff81be2493d59f815b3241 | |
parent | tty: synclink_gt: use PCI_VDEVICE (diff) | |
download | linux-fe61b57fc0f27a7df81a1a355defb8ddcb9731cb.tar.xz linux-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.c | 2 |
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, |