mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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>, Carlo Caione <carlo@caione.org>,
	Kevin Hilman <khilman@baylibre.com>,
	linux-serial@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH 01/11] serial: meson: constify uart_ops structures
Date: Sun, 13 Aug 2017 08:21:40 +0200	[thread overview]
Message-ID: <1502605310-4314-2-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/meson_uart.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c
index 42e4a4c..07c0f98 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,

  reply	other threads:[~2017-08-13  6:50 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 ` Julia Lawall [this message]
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 ` [PATCH 09/11] serial: m32r_sio: " Julia Lawall
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-2-git-send-email-Julia.Lawall@lip6.fr \
    --to=julia.lawall@lip6.fr \
    --cc=bhumirks@gmail.com \
    --cc=carlo@caione.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jslaby@suse.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=khilman@baylibre.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.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®