Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1721891 > unrolled thread
| Started by | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| First post | 2017-08-28 20:40 +0200 |
| Last post | 2017-08-28 20:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] tty: hvcs: make ktermios const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-28 20:40 +0200
Re: [PATCH] tty: hvcs: make ktermios const Tyrel Datwyler <tyreld@linux.vnet.ibm.com> - 2017-08-28 20:40 +0200
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-28 20:40 +0200 |
| Subject | [PATCH] tty: hvcs: make ktermios const |
| Message-ID | <ujx73-zb-1@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Tyrel Datwyler <tyreld@linux.vnet.ibm.com> |
|---|---|
| Date | 2017-08-28 20:40 +0200 |
| Message-ID | <ujx74-zb-25@gated-at.bofh.it> |
| In reply to | #1721891 |
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>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web