n_tty: make many tty parameters const
authorJiri Slaby <jirislaby@kernel.org>
Wed, 12 Jul 2023 06:42:16 +0000 (08:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 17:19:39 +0000 (19:19 +0200)
commit5bedcf70c6be530c6c4a7f78a820dd19566996e0
tree79feed8c58c72488c619870c065db0b43f35ecfb
parent32042446c030b677f3bf10081876d9bd078740a2
n_tty: make many tty parameters const

In many n_tty functions, the 'tty' parameter is used to either obtain
'ldata', or test the tty flags. So mark 'tty' in them const to make
obvious that it is only read.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230712064216.12150-5-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c