summaryrefslogtreecommitdiffstats
path: root/drivers/tty/goldfish.c
diff options
context:
space:
mode:
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>2015-12-15 00:53:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 08:31:08 +0100
commit04b757dfd26cee24bc62ed815cd87efbf10ef2fc (patch)
tree4e6501161f5997c42cfedc2849b4adb015d374f9 /drivers/tty/goldfish.c
parentchar: constify tty_port_operations structs (diff)
downloadlinux-04b757dfd26cee24bc62ed815cd87efbf10ef2fc.tar.xz
linux-04b757dfd26cee24bc62ed815cd87efbf10ef2fc.zip
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/goldfish.c')
-rw-r--r--drivers/tty/goldfish.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/goldfish.c b/drivers/tty/goldfish.c
index 0f82c0b146f6..752232c77503 100644
--- a/drivers/tty/goldfish.c
+++ b/drivers/tty/goldfish.c
@@ -162,7 +162,7 @@ static int goldfish_tty_console_setup(struct console *co, char *options)
return 0;
}
-static struct tty_port_operations goldfish_port_ops = {
+static const struct tty_port_operations goldfish_port_ops = {
.activate = goldfish_tty_activate,
.shutdown = goldfish_tty_shutdown
};