diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2017-08-13 08:21:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 20:51:19 +0200 |
commit | 921469f7fb972f7c6146a6a82693bd45b3beec21 (patch) | |
tree | 662dfa2d9cf21f709c1870f8759b5e595d76bd9b /drivers/tty | |
parent | e5a74707314fbb4ef685d6e218073064f47315e2 (diff) | |
download | linux-exynos-921469f7fb972f7c6146a6a82693bd45b3beec21.tar.gz linux-exynos-921469f7fb972f7c6146a6a82693bd45b3beec21.tar.bz2 linux-exynos-921469f7fb972f7c6146a6a82693bd45b3beec21.zip |
serial: meson: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/meson_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 42e4a4c7597f..07c0f98be3ac 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -424,7 +424,7 @@ static void meson_uart_config_port(struct uart_port *port, int flags) } } -static struct uart_ops meson_uart_ops = { +static const struct uart_ops meson_uart_ops = { .set_mctrl = meson_uart_set_mctrl, .get_mctrl = meson_uart_get_mctrl, .tx_empty = meson_uart_tx_empty, |