diff options
author | Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> | 2015-12-15 02:53:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 10:31:08 +0300 |
commit | 04b757dfd26cee24bc62ed815cd87efbf10ef2fc (patch) | |
tree | 4e6501161f5997c42cfedc2849b4adb015d374f9 /drivers/tty/mxser.c | |
parent | 9b95d95d5eba5a077283423616b4ec3329d6ab00 (diff) | |
download | linux-04b757dfd26cee24bc62ed815cd87efbf10ef2fc.tar.xz |
tty: constify tty_port_operations structs
Constifies tty_port_operations structures in
the tty driver since they are not modified
after their initialization.
Detected and found using Coccinelle.
Suggested-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/mxser.c')
-rw-r--r-- | drivers/tty/mxser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c index 9a0791e523b5..2f12bb9f4336 100644 --- a/drivers/tty/mxser.c +++ b/drivers/tty/mxser.c @@ -2336,7 +2336,7 @@ static const struct tty_operations mxser_ops = { .get_icount = mxser_get_icount, }; -static struct tty_port_operations mxser_port_ops = { +static const struct tty_port_operations mxser_port_ops = { .carrier_raised = mxser_carrier_raised, .dtr_rts = mxser_dtr_rts, .activate = mxser_activate, |