提交 1cceefd3 编写于 作者: A Alexey Dobriyan 提交者: Greg Kroah-Hartman

tty: const: constify remaining tty_operations

Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 e6bdf24c
...@@ -196,7 +196,7 @@ static const struct file_operations rs_proc_fops = { ...@@ -196,7 +196,7 @@ static const struct file_operations rs_proc_fops = {
.release = single_release, .release = single_release,
}; };
static struct tty_operations serial_ops = { static const struct tty_operations serial_ops = {
.open = rs_open, .open = rs_open,
.close = rs_close, .close = rs_close,
.write = rs_write, .write = rs_write,
......
...@@ -226,7 +226,7 @@ bfin_jc_wait_until_sent(struct tty_struct *tty, int timeout) ...@@ -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, .open = bfin_jc_open,
.close = bfin_jc_close, .close = bfin_jc_close,
.write = bfin_jc_write, .write = bfin_jc_write,
......
...@@ -935,7 +935,7 @@ static int info_open(struct tty_struct *tty, struct file *filp) ...@@ -935,7 +935,7 @@ static int info_open(struct tty_struct *tty, struct file *filp)
return 0; return 0;
} }
static struct tty_operations info_ops = { static const struct tty_operations info_ops = {
.open = info_open, .open = info_open,
.ioctl = info_ioctl, .ioctl = info_ioctl,
}; };
......
...@@ -603,7 +603,7 @@ void ipwireless_tty_free(struct ipw_tty *tty) ...@@ -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, .open = ipw_open,
.close = ipw_close, .close = ipw_close,
.hangup = ipw_hangup, .hangup = ipw_hangup,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册