From: Julia Lawall <Julia.Lawall@lip6.fr>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: bhumirks@gmail.com, kernel-janitors@vger.kernel.org,
Jiri Slaby <jslaby@suse.com>,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 09/11] serial: m32r_sio: constify uart_ops structures
Date: Sun, 13 Aug 2017 08:21:48 +0200 [thread overview]
Message-ID: <1502605310-4314-10-git-send-email-Julia.Lawall@lip6.fr> (raw)
In-Reply-To: <1502605310-4314-1-git-send-email-Julia.Lawall@lip6.fr>
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>
---
drivers/tty/serial/m32r_sio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/m32r_sio.c b/drivers/tty/serial/m32r_sio.c
index 218b711..5b3bd95 100644
--- a/drivers/tty/serial/m32r_sio.c
+++ b/drivers/tty/serial/m32r_sio.c
@@ -854,7 +854,7 @@ static void m32r_sio_config_port(struct uart_port *port, int unused)
return 0;
}
-static struct uart_ops m32r_sio_pops = {
+static const struct uart_ops m32r_sio_pops = {
.tx_empty = m32r_sio_tx_empty,
.set_mctrl = m32r_sio_set_mctrl,
.get_mctrl = m32r_sio_get_mctrl,
next prev parent reply other threads:[~2017-08-13 6:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-13 6:21 [PATCH 00/11] " Julia Lawall
2017-08-13 6:21 ` [PATCH 01/11] serial: meson: " Julia Lawall
2017-08-13 6:21 ` [PATCH 02/11] serial: owl: " Julia Lawall
2017-08-13 6:21 ` [PATCH 03/11] serial: sunsab: " Julia Lawall
2017-08-14 3:12 ` David Miller
2017-08-13 6:21 ` [PATCH 04/11] serial: sunsu: " Julia Lawall
2017-08-14 3:12 ` David Miller
2017-08-13 6:21 ` [PATCH 05/11] serial: uuc_uart: " Julia Lawall
2017-08-15 14:44 ` Timur Tabi
2017-08-13 6:21 ` [PATCH 06/11] serial: 21285: " Julia Lawall
2017-08-13 6:21 ` [PATCH 07/11] serial: apbuart: " Julia Lawall
2017-08-13 6:21 ` [PATCH 08/11] serial: cpm_uart: " Julia Lawall
2017-08-13 6:21 ` Julia Lawall [this message]
2017-08-13 6:21 ` [PATCH 10/11] serial: mpc52xx: " Julia Lawall
2017-08-13 6:21 ` [PATCH 11/11] serial: mux: " Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1502605310-4314-10-git-send-email-Julia.Lawall@lip6.fr \
--to=julia.lawall@lip6.fr \
--cc=bhumirks@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®