Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1291676 > unrolled thread
| Started by | Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> |
|---|---|
| First post | 2015-12-15 00:30 +0100 |
| Last post | 2015-12-15 00:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] staging: gdm724x: constify tty_port_operations structs Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> - 2015-12-15 00:30 +0100
| From | Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> |
|---|---|
| Date | 2015-12-15 00:30 +0100 |
| Subject | [PATCH] staging: gdm724x: constify tty_port_operations structs |
| Message-ID | <qFKJ4-4oW-17@gated-at.bofh.it> |
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web