tty: const: constify remaining tty_operations
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 2 Oct 2009 20:12:06 +0000 (00:12 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:03 +0000 (15:18 -0800)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/xtensa/platforms/iss/console.c
drivers/char/bfin_jtag_comm.c
drivers/char/epca.c
drivers/char/pcmcia/ipwireless/tty.c

index 4c559cf7da2d8c13c0a0529f5ae2e458b65257d1..e60a1f57022f358a6ca1e61119ed8e71f547bcbf 100644 (file)
@@ -196,7 +196,7 @@ static const struct file_operations rs_proc_fops = {
        .release        = single_release,
 };
 
-static struct tty_operations serial_ops = {
+static const struct tty_operations serial_ops = {
        .open = rs_open,
        .close = rs_close,
        .write = rs_write,
index 1d7c34c73b202594467bdac85fde9f634fdfc552..2628c7415ea863b07b0caa5064bbf0c0c42f3dfb 100644 (file)
@@ -226,7 +226,7 @@ bfin_jc_wait_until_sent(struct tty_struct *tty, int timeout)
        }
 }
 
-static struct tty_operations bfin_jc_ops = {
+static const struct tty_operations bfin_jc_ops = {
        .open            = bfin_jc_open,
        .close           = bfin_jc_close,
        .write           = bfin_jc_write,
index dde5134713e23f88fe185e2f4216cd9ad62ebfac..17b044a71e026fc8c943de8ea5bf64c852abc75c 100644 (file)
@@ -935,7 +935,7 @@ static int info_open(struct tty_struct *tty, struct file *filp)
        return 0;
 }
 
-static struct tty_operations info_ops = {
+static const struct tty_operations info_ops = {
        .open = info_open,
        .ioctl = info_ioctl,
 };
index 674b3ab3587d505458fbdb802fc0a7cbcdf7d2eb..2bb7874a6899d5afee7e1bc65c154f63ee482287 100644 (file)
@@ -603,7 +603,7 @@ void ipwireless_tty_free(struct ipw_tty *tty)
        }
 }
 
-static struct tty_operations tty_ops = {
+static const struct tty_operations tty_ops = {
        .open = ipw_open,
        .close = ipw_close,
        .hangup = ipw_hangup,