diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2017-08-13 09:21:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 21:51:21 +0300 |
commit | 0bfdbe0737b6bf6e4553e36279cf6fd80295a859 (patch) | |
tree | b11f3f1e38a2fbfaff1676a1c69ef8aa4ca9b89e /drivers/tty/serial/sunsu.c | |
parent | 6f137a751cd968b5ddd27a5d99eefa83f73d3390 (diff) | |
download | linux-0bfdbe0737b6bf6e4553e36279cf6fd80295a859.tar.xz |
serial: sunsu: constify uart_ops structures
These uart_ops structures are only stored in the ops field of a
uart_port structure and this fields is const, so the uart_ops
structures can also be const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/sunsu.c')
-rw-r--r-- | drivers/tty/serial/sunsu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sunsu.c b/drivers/tty/serial/sunsu.c index 5380407bb0be..95d34d7565c9 100644 --- a/drivers/tty/serial/sunsu.c +++ b/drivers/tty/serial/sunsu.c @@ -958,7 +958,7 @@ sunsu_type(struct uart_port *port) return uart_config[type].name; } -static struct uart_ops sunsu_pops = { +static const struct uart_ops sunsu_pops = { .tx_empty = sunsu_tx_empty, .set_mctrl = sunsu_set_mctrl, .get_mctrl = sunsu_get_mctrl, |