From patchwork Wed Jul 19 05:25:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9850527 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 9963A60392 for ; Wed, 19 Jul 2017 05:26:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E59926E4E for ; Wed, 19 Jul 2017 05:26:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71D7F2860D; Wed, 19 Jul 2017 05:26:38 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 1870C26E4E for ; Wed, 19 Jul 2017 05:26:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751364AbdGSF0h (ORCPT ); Wed, 19 Jul 2017 01:26:37 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36580 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751123AbdGSF0g (ORCPT ); Wed, 19 Jul 2017 01:26:36 -0400 Received: by mail-pf0-f196.google.com with SMTP id a11so5182489pfj.3; Tue, 18 Jul 2017 22:26:36 -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=F4AYljRjPg8L0TGgFvnhtd1Fm517Fa1+ovRkE9nFxG4=; b=hdUUanyw/BseA1BKBN7OoK3ZWpIoovMaI/356eLXGkzLVtpuc0sWMQwvKjbWi6Cua/ KAkVe9cM+hJNE3REnCJfKnY13XK6IqrFjxA2Jx0wpRagd1Op3gbMIuZBdedFmzQZUrDh KAx21Z0kqRTBsHXANJj0lrINjgwiO+8cRt6OoTXK2Ie2ty1Gv98iEA3oleG+bf9M32q9 VeOXwRNFAPE+orSfYo3jtfNEN0DWBnqJQFRwKF9U5b3/vEABF74uurZ2BwOuspK28OaI onvlrvMdf8bARw626S6BSYzczODVciOQi7DxERrUJNOhUQ7ArSFGp8AKb1ChnFZbHYbM gv4A== 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=F4AYljRjPg8L0TGgFvnhtd1Fm517Fa1+ovRkE9nFxG4=; b=SdM1/GFzQ02CtFOEHoLeHREUtZSvSPQlMqkoGyk+xS2J1rmW7zsJXt1XcorQvxDrF9 fxwg57/BOqTOJVKg6xZCqSspMCmQjMVHZhfl9Sc7hJ62M3W0BF4h2O4E/KyKYJctMY3B yrrob8I4TLSNKyCR8QbcqfuxRFxQfhYnqNnbJ8BLqygzApDnBKOm4kxupd2wswnFdZoO 0fSQMUe/9nk01sP1WPRVzWhQx192vzTTvMWqG1KUNIHZZTAgOVhdMHz8A4FmDgjrNxyp vAYZ4bdHDbx/4wKqAfnaVzA76s99laMbfoj9TAAe+3Z9Q+v9RTefpMOGeH8kfdqhu9/H 4YxA== X-Gm-Message-State: AIVw110UR42imUyHYXlpLNsV/A7Qv+YPKJ+BgUDKkVIX70mOSvMWF9eF 9XmaxBkVPyp0B9P0BzI= X-Received: by 10.98.61.199 with SMTP id x68mr1247734pfj.228.1500441996016; Tue, 18 Jul 2017 22:26:36 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id t4sm7220951pgs.22.2017.07.18.22.26.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Jul 2017 22:26:35 -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] omapfb: panel-sony-acx565akm: constify attribute_group structures. Date: Wed, 19 Jul 2017 10:55:57 +0530 Message-Id: <0daabb462abd99a557da903c961de0eae1782998.1500441926.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 attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. File size before: text data bss dec hex filename 5227 560 0 5787 169b panel-sony-acx565akm File size After adding 'const': text data bss dec hex filename 5291 496 0 5787 169b panel-sony-acx565akm.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c index 468560a..f2c2fef 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c @@ -509,7 +509,7 @@ static DEVICE_ATTR(cabc_available_modes, S_IRUGO, NULL, }; -static struct attribute_group bldev_attr_group = { +static const struct attribute_group bldev_attr_group = { .attrs = bldev_attrs, };