From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751230AbdAUQ50 (ORCPT ); Sat, 21 Jan 2017 11:57:26 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35785 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750846AbdAUQ5X (ORCPT ); Sat, 21 Jan 2017 11:57:23 -0500 From: Bhumika Goyal To: julia.lawall@lip6.fr, jassisinghbrar@gmail.com, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] mailbox: hi6220-mailbox: constify mbox_chan_ops structure Date: Sat, 21 Jan 2017 22:27:13 +0530 Message-Id: <1485017833-22598-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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