From patchwork Tue Jun 20 06:18:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9798611 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E90A360328 for ; Tue, 20 Jun 2017 06:18:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E25F02624A for ; Tue, 20 Jun 2017 06:18:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D70C3269A3; Tue, 20 Jun 2017 06:18:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D0D92624A for ; Tue, 20 Jun 2017 06:18:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751120AbdFTGSy (ORCPT ); Tue, 20 Jun 2017 02:18:54 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36650 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751046AbdFTGSx (ORCPT ); Tue, 20 Jun 2017 02:18:53 -0400 Received: by mail-pf0-f195.google.com with SMTP id y7so21089724pfd.3; Mon, 19 Jun 2017 23:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=enU3Cv0BouOmI7zAst8Ia+F3Zv0WHpWB91qwITai21E=; b=Tf/fl+32HLiV7DN46bynxGLe7ak5q1pMjnSKcGecCFT2WWrn/i5clvQJYV0F76Vs0G 3aNDYqQWuqSRdrk+X2HsZV4KEYy/0lnvBXjqaccNchh/o/vTxdHQ8Tn6aUlEyadaAUhx gKa1bFytDI0cBPAYSgTNI/X/aawp3AsQVdNFQaX0YgQtiBn02Zs9JoDOJ5P8fVVHGKJA zIapmvRNA73tXYtIq/YkdPBEDF45xis4qCBNUGmhayud4jjtb12Oy4DPUfbgaWVtrZzu HEKUj2ssZ858IqOdyNvpqQL5p3E9IXyJDkOxZgFWGgOT9toLWzW3QdGYj3EPf1zOWOap 2/NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=enU3Cv0BouOmI7zAst8Ia+F3Zv0WHpWB91qwITai21E=; b=INt6qhwjLvDvaxFi0YfQo5loafpc5cHWQoD/VLKfLWLvkgwUxhKwh4OceAke+rHKrL ossS/KWG6u+OaxukWJLWAfw7teaeWiTrXNowoKKIeINOvpg39oDjvKcZPAh1Fy+hUegv blswQnxsddXKXM4MnLqHBmyM9Xbe4w4CLlffeJKWThyNKZzV5kdVojt1MXzlSgH8iYXh E8QuFk5042BHw0f106KtUlwbjW1awHdj8/OMEKFx7JA0XE3KCLtfOJ52gIJwTfc1oJeI gV+amMhcvNuYtjA48T5Jb36/lchN5wwAckQ9YgovP10p0840Zq6mjyUawEHt9IEzDHN7 gmUw== X-Gm-Message-State: AKS2vOwUzusJ4fBDwNdFxzZRBDdc72hefV8Tsy4wdApL0SfDmqevTc/R w9gwvW2RG4ug7w== X-Received: by 10.101.72.136 with SMTP id n8mr2932625pgs.198.1497939533214; Mon, 19 Jun 2017 23:18:53 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id y28sm25183601pfd.32.2017.06.19.23.18.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Jun 2017 23:18:51 -0700 (PDT) From: Arvind Yadav To: timur@tabi.org, b.zolnierkie@samsung.com Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: fsl-diu-fb: constify mfb_template and fsl_diu_match. Date: Tue, 20 Jun 2017 11:48:14 +0530 Message-Id: <9c07b512d764aa87a17dc871b9b2feaf050ff8c5.1497939324.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP File size before: text data bss dec hex filename 2469 1552 24 4045 fcd drivers/video/fbdev/fsl-diu-fb.o File size After adding 'const': text data bss dec hex filename 3821 200 24 4045 fcd drivers/video/fbdev/fsl-diu-fb.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/fsl-diu-fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c index ca3d6b3..25abbcf 100644 --- a/drivers/video/fbdev/fsl-diu-fb.c +++ b/drivers/video/fbdev/fsl-diu-fb.c @@ -388,7 +388,7 @@ struct fsl_diu_data { /* Determine the DMA address of a member of the fsl_diu_data structure */ #define DMA_ADDR(p, f) ((p)->dma_addr + offsetof(struct fsl_diu_data, f)) -static struct mfb_info mfb_template[] = { +static const struct mfb_info mfb_template[] = { { .index = PLANE0, .id = "Panel0", @@ -1868,7 +1868,7 @@ static int __init fsl_diu_setup(char *options) } #endif -static struct of_device_id fsl_diu_match[] = { +static const struct of_device_id fsl_diu_match[] = { #ifdef CONFIG_PPC_MPC512x { .compatible = "fsl,mpc5121-diu",