提交 e16a4884 编写于 作者: A Aya Mahfouz 提交者: Greg Kroah-Hartman

staging: gdm724x: constify tty_port_operations structs

Constifies tty_port_operations structure in
the tty code of the gdm724x driver since it
is not modified after its initialization.

Detected and found using Coccinelle.
Suggested-by: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d1052aa5
...@@ -64,7 +64,7 @@ static void gdm_port_destruct(struct tty_port *port) ...@@ -64,7 +64,7 @@ static void gdm_port_destruct(struct tty_port *port)
kfree(gdm); kfree(gdm);
} }
static struct tty_port_operations gdm_port_ops = { static const struct tty_port_operations gdm_port_ops = {
.destruct = gdm_port_destruct, .destruct = gdm_port_destruct,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册