mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, jassisinghbrar@gmail.com,
	linux-kernel@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH] mailbox: hi6220-mailbox: constify mbox_chan_ops structure
Date: Sat, 21 Jan 2017 22:27:13 +0530	[thread overview]
Message-ID: <1485017833-22598-1-git-send-email-bhumirks@gmail.com> (raw)

Declare mbox_chan_ops structure as const as it is only stored in the ops
field of a mbox_controller structure. This field is of type const, so
add const to structure declaration of mbox_chan_ops structure.

File size before:
   text	   data	    bss	    dec	    hex	filename
   2411	    248	      0	   2659	    a63	drivers/mailbox/hi6220-mailbox.o

File size after:
  text	   data	    bss	    dec	    hex	filename
   2467	    192	      0	   2659	    a63	drivers/mailbox/hi6220-mailbox.o

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/mailbox/hi6220-mailbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mailbox/hi6220-mailbox.c b/drivers/mailbox/hi6220-mailbox.c
index 613722d..519376d 100644
--- a/drivers/mailbox/hi6220-mailbox.c
+++ b/drivers/mailbox/hi6220-mailbox.c
@@ -221,7 +221,7 @@ static void hi6220_mbox_shutdown(struct mbox_chan *chan)
 	mbox->irq_map_chan[mchan->ack_irq] = NULL;
 }
 
-static struct mbox_chan_ops hi6220_mbox_ops = {
+static const struct mbox_chan_ops hi6220_mbox_ops = {
 	.send_data    = hi6220_mbox_send_data,
 	.startup      = hi6220_mbox_startup,
 	.shutdown     = hi6220_mbox_shutdown,
-- 
2.7.4

                 reply	other threads:[~2017-01-21 16:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1485017833-22598-1-git-send-email-bhumirks@gmail.com \
    --to=bhumirks@gmail.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=julia.lawall@lip6.fr \
    --cc=linux-kernel@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®