* [PATCH] staging: gdm724x: constify tty_port_operations structs
@ 2015-12-14 23:27 Aya Mahfouz
0 siblings, 0 replies; only message in thread
From: Aya Mahfouz @ 2015-12-14 23:27 UTC (permalink / raw)
To: Greg Kroah-Hartman, Jonathan Kim, Dean ahn, Julia Lawall, devel,
linux-kernel
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: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
---
drivers/staging/gdm724x/gdm_tty.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c
index e2c0f22..eb7e252 100644
--- a/drivers/staging/gdm724x/gdm_tty.c
+++ b/drivers/staging/gdm724x/gdm_tty.c
@@ -64,7 +64,7 @@ static void gdm_port_destruct(struct tty_port *port)
kfree(gdm);
}
-static struct tty_port_operations gdm_port_ops = {
+static const struct tty_port_operations gdm_port_ops = {
.destruct = gdm_port_destruct,
};
--
2.4.3
--
Kind Regards,
Aya Saif El-yazal Mahfouz
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-14 23:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14 23:27 [PATCH] staging: gdm724x: constify tty_port_operations structs Aya Mahfouz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox