Skip to content

Commit

Permalink
tty: const: constify remaining tty_operations
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alexey Dobriyan authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent e6bdf24 commit 1cceefd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/xtensa/platforms/iss/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/bfin_jtag_comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/epca.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/pcmcia/ipwireless/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1cceefd

Please sign in to comment.