From patchwork Fri Jun 23 05:42: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: 9805713 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 1FA18600C5 for ; Fri, 23 Jun 2017 05:43:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A61AB1FEB1 for ; Fri, 23 Jun 2017 05:43:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99DF828665; Fri, 23 Jun 2017 05:43:00 +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 41FEA1FEB1 for ; Fri, 23 Jun 2017 05:43:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754233AbdFWFm6 (ORCPT ); Fri, 23 Jun 2017 01:42:58 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35776 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754089AbdFWFm5 (ORCPT ); Fri, 23 Jun 2017 01:42:57 -0400 Received: by mail-pg0-f65.google.com with SMTP id f127so5014645pgc.2; Thu, 22 Jun 2017 22:42:57 -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=HDKXbWqnbD1YDd5I5GaoGmEhaXqc7HGdbCxUZPHK+8M=; b=Lmyv8m+g8NGePVYhH32peJPOQnhp3iAIxMHgJ1oqLKdg8r2sbY8XTDY+gYzW9K8uyW 1lM7fcBTqRdtwKL3nI/0Eq4xAcSPcC7IW+HN+DheKLp+X66U79UlHJh5EbkFIK1e8aUO F/NoPfwOuVwCPjsxetll34soMaBf0uhG+GcU8epmEIQMXzlfSpbZ2Iemx428Q1hyrNLb z1YFb/AovTnqogk8ygFxajabI4QptVHdch/jFE3gUW8vCh1u5e8iE1pjkxmY0F1AfN8L RYYTZ4sRfTmPCWqo3wDppzhyZejd/2tuDGpFpCKsDtoPuaPPmjk5yD87cjySDY5XJmJS rYlQ== 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=HDKXbWqnbD1YDd5I5GaoGmEhaXqc7HGdbCxUZPHK+8M=; b=N7Zvr0Wsxucgb9PzxCJR+/MAX+rMpLVUu5H14aza86bg2vEMK2Lnb9GD64AuKskIJn NsL2P/rBdZ/wbJJGk2a1SvCuV34QLeEK7+SWg20F9Z+tECyS7tlcnNxgPs4FjiK4WMbw /nzgDkdjO7baCPN+vjB2ozcgr47UJtA/D06kORaykc7SHELM3zgkR+d0BBcFidz0qETH wVjXw9D1xheZGnIlUw2yuQ6l5UfyjgC+98Fo6Y5H59j083B6hirdCMXuM/u1WGaOgq+6 9Hg7FKginDyC0HzEGyOOC+TbLHBx9K48yQ4C74RF/1UiGJ/lGvPdfGUXibcMcq7uWZxi qwDA== X-Gm-Message-State: AKS2vOwgKgsYMLvhN8EV3d2csav7Y7dZ7ykpeqU5ITvY7Sd3w3eyeOMq JLnN1NWga25yQA== X-Received: by 10.84.218.71 with SMTP id f7mr6874101plm.282.1498196576921; Thu, 22 Jun 2017 22:42:56 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id y66sm7129039pfa.54.2017.06.22.22.42.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Jun 2017 22:42:56 -0700 (PDT) From: Arvind Yadav To: tomi.valkeinen@ti.com, b.zolnierkie@samsung.com Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fbdev: omapfb: constify ctrl_caps, color_caps, panel_attr_grp and ctrl_attr_grp Date: Fri, 23 Jun 2017 11:12:14 +0530 Message-Id: <6008756483cab9ccb8566866367d30ef6d98f181.1498196466.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 13007 1536 156 14699 396b drivers/video/fbdev/omap/omapfb_main.o File size After adding 'const': text data bss dec hex filename 13135 1408 156 14699 396b drivers/video/fbdev/omap/omapfb_main.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/omap/omapfb_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/omap/omapfb_main.c b/drivers/video/fbdev/omap/omapfb_main.c index f4cbfb3..3479a47 100644 --- a/drivers/video/fbdev/omap/omapfb_main.c +++ b/drivers/video/fbdev/omap/omapfb_main.c @@ -62,7 +62,7 @@ struct caps_table_struct { const char *name; }; -static struct caps_table_struct ctrl_caps[] = { +static const struct caps_table_struct ctrl_caps[] = { { OMAPFB_CAPS_MANUAL_UPDATE, "manual update" }, { OMAPFB_CAPS_TEARSYNC, "tearing synchronization" }, { OMAPFB_CAPS_PLANE_RELOCATE_MEM, "relocate plane memory" }, @@ -74,7 +74,7 @@ struct caps_table_struct { { OMAPFB_CAPS_SET_BACKLIGHT, "backlight setting" }, }; -static struct caps_table_struct color_caps[] = { +static const struct caps_table_struct color_caps[] = { { 1 << OMAPFB_COLOR_RGB565, "RGB565", }, { 1 << OMAPFB_COLOR_YUV422, "YUV422", }, { 1 << OMAPFB_COLOR_YUV420, "YUV420", }, @@ -1384,7 +1384,7 @@ static DEVICE_ATTR(backlight_level, 0664, NULL, }; -static struct attribute_group panel_attr_grp = { +static const struct attribute_group panel_attr_grp = { .name = "panel", .attrs = panel_attrs, }; @@ -1406,7 +1406,7 @@ static ssize_t omapfb_show_ctrl_name(struct device *dev, NULL, }; -static struct attribute_group ctrl_attr_grp = { +static const struct attribute_group ctrl_attr_grp = { .name = "ctrl", .attrs = ctrl_attrs, };