Commit 9b95d95d authored by Aya Mahfouz's avatar Aya Mahfouz Committed by Greg Kroah-Hartman

char: constify tty_port_operations structs

Constifies tty_port_operations structure in
the char driver since it is not modified
after its initialization.

Detected and found using Coccinelle.
Suggested-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 401879c5
...@@ -171,7 +171,7 @@ static const struct tty_operations ttyprintk_ops = { ...@@ -171,7 +171,7 @@ static const struct tty_operations ttyprintk_ops = {
.ioctl = tpk_ioctl, .ioctl = tpk_ioctl,
}; };
static struct tty_port_operations null_ops = { }; static const struct tty_port_operations null_ops = { };
static struct tty_driver *ttyprintk_driver; static struct tty_driver *ttyprintk_driver;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment