[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20091002201206.GA29905@x200>
Date: Sat, 3 Oct 2009 00:12:06 +0400
From: Alexey Dobriyan <adobriyan@...il.com>
To: gregkh@...e.de, akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] const: constify remaining tty_operations
Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
---
arch/xtensa/platforms/iss/console.c | 2 +-
drivers/char/bfin_jtag_comm.c | 2 +-
drivers/char/epca.c | 2 +-
drivers/char/pcmcia/ipwireless/tty.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
--- a/arch/xtensa/platforms/iss/console.c
+++ b/arch/xtensa/platforms/iss/console.c
@@ -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,
--- a/drivers/char/bfin_jtag_comm.c
+++ b/drivers/char/bfin_jtag_comm.c
@@ -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,
--- a/drivers/char/epca.c
+++ b/drivers/char/epca.c
@@ -934,7 +934,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,
};
--- a/drivers/char/pcmcia/ipwireless/tty.c
+++ b/drivers/char/pcmcia/ipwireless/tty.c
@@ -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,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists