mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Julia Lawall <Julia.Lawall@lip6.fr>
To: Timur Tabi <timur@tabi.org>
Cc: bhumirks@gmail.com, kernel-janitors@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jslaby@suse.com>,
	linuxppc-dev@lists.ozlabs.org, linux-serial@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 05/11] serial: uuc_uart: constify uart_ops structures
Date: Sun, 13 Aug 2017 08:21:44 +0200	[thread overview]
Message-ID: <1502605310-4314-6-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/ucc_uart.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/ucc_uart.c b/drivers/tty/serial/ucc_uart.c
index 481eb29..55b7027 100644
--- a/drivers/tty/serial/ucc_uart.c
+++ b/drivers/tty/serial/ucc_uart.c
@@ -1085,7 +1085,7 @@ static int qe_uart_verify_port(struct uart_port *port,
  *
  * Details on these functions can be found in Documentation/serial/driver
  */
-static struct uart_ops qe_uart_pops = {
+static const struct uart_ops qe_uart_pops = {
 	.tx_empty       = qe_uart_tx_empty,
 	.set_mctrl      = qe_uart_set_mctrl,
 	.get_mctrl      = qe_uart_get_mctrl,

  parent reply	other threads:[~2017-08-13  6:49 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 ` Julia Lawall [this message]
2017-08-15 14:44   ` [PATCH 05/11] serial: uuc_uart: " 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-6-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 \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=timur@tabi.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®