* [PATCH] tty: hvcs: make ktermios const
@ 2017-08-28 18:30 Bhumika Goyal
2017-08-28 18:39 ` Tyrel Datwyler
0 siblings, 1 reply; 2+ messages in thread
From: Bhumika Goyal @ 2017-08-28 18:30 UTC (permalink / raw)
To: julia.lawall, gregkh, jslaby, linuxppc-dev, linux-kernel; +Cc: Bhumika Goyal
Make this const as it is not modified anywhere.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
drivers/tty/hvc/hvcs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c
index 79cc5be..40adf86 100644
--- a/drivers/tty/hvc/hvcs.c
+++ b/drivers/tty/hvc/hvcs.c
@@ -189,7 +189,7 @@
* that will cause echoing or we'll go into recursive loop echoing chars back
* and forth with the console drivers.
*/
-static struct ktermios hvcs_tty_termios = {
+static const struct ktermios hvcs_tty_termios = {
.c_iflag = IGNBRK | IGNPAR,
.c_oflag = OPOST,
.c_cflag = B38400 | CS8 | CREAD | HUPCL,
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tty: hvcs: make ktermios const
2017-08-28 18:30 [PATCH] tty: hvcs: make ktermios const Bhumika Goyal
@ 2017-08-28 18:39 ` Tyrel Datwyler
0 siblings, 0 replies; 2+ messages in thread
From: Tyrel Datwyler @ 2017-08-28 18:39 UTC (permalink / raw)
To: Bhumika Goyal, julia.lawall, gregkh, jslaby, linuxppc-dev,
linux-kernel
On 08/28/2017 11:30 AM, Bhumika Goyal wrote:
> Make this const as it is not modified anywhere.
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-28 18:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-28 18:30 [PATCH] tty: hvcs: make ktermios const Bhumika Goyal
2017-08-28 18:39 ` Tyrel Datwyler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).