diff options
author | Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> | 2015-12-15 01:27:27 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-12-26 17:13:33 -0800 |
commit | e16a48845deefc417738b22a801e94486abd1d6f (patch) | |
tree | fa15199d48d064ca086705d799805b2d708b38b6 /drivers/staging | |
parent | d1052aa5692d08aa4a058507ff5721317d2bef75 (diff) | |
download | linux-stable-e16a48845deefc417738b22a801e94486abd1d6f.tar.gz linux-stable-e16a48845deefc417738b22a801e94486abd1d6f.tar.bz2 linux-stable-e16a48845deefc417738b22a801e94486abd1d6f.zip |
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: 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/staging')
-rw-r--r-- | drivers/staging/gdm724x/gdm_tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c index e2c0f228f369..eb7e2523c354 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, }; |