From patchwork Wed Jul 19 05:23:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9850523 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 E9B5760392 for ; Wed, 19 Jul 2017 05:23:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D92332656B for ; Wed, 19 Jul 2017 05:23:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDD6628615; Wed, 19 Jul 2017 05:23:52 +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=unavailable 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 925CD2656B for ; Wed, 19 Jul 2017 05:23:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751233AbdGSFXu (ORCPT ); Wed, 19 Jul 2017 01:23:50 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35810 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751123AbdGSFXt (ORCPT ); Wed, 19 Jul 2017 01:23:49 -0400 Received: by mail-pg0-f65.google.com with SMTP id d193so5506840pgc.2; Tue, 18 Jul 2017 22:23:49 -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=xGkwcvvwwoWhwEO12vTuSNF6AcgqyfXL2HjRkTfrpdc=; b=RxmOncDGJ8FiMLxq1UpSvAP9VH6cbEnOt2qBip1Uv2IzLqrsBFhofCWD4YL8PW82EB YyDWXtcN51d3d+9Gz6+ytKF4O73Babto5hADEoULBYd4byR+obnSSJtJjcxMqPw0w9Y/ 1dBLElLDLzZF/yN17B67qWEefedN+Nal+22kjAAc97FAE8axlqTq8eqgCXjAGKapVrS8 YbgBA/OoNEmODF85qK18TYCgMemaTEsv+JVJgGWLSvaF50jbdpZT7mslv1VfCbGvr1hk BN77aTCpb3lDpYTnKRbEMiFbbXRZcQRJjeaQ2XPhWq0hVeSzUCwjRF0N6GPdpOHRAAd6 aZgw== 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=xGkwcvvwwoWhwEO12vTuSNF6AcgqyfXL2HjRkTfrpdc=; b=sGdTJZquxLNXQjMwk1OIxxdfF5AE6NgBkfC+zCMdlTrmRfkxjQhIPUmXdmjXsVQlGv N1N/aprCZ75TitFSYIwzmGPCtzFFYXPWTxVtScFUWUha+YrTVZc1EktRWd0yPRsjDixS yhG82YtwYGf6lCT7dVejxQH22exGC7pA7jrlWcuhzQ/JMRAK1/f5JWRLm5KvNUvmzzLB NwdqMmE5l1sM2cwBDimxDn2pZaN1WZdbMJRKwY5RNMscyK+7+K1hpqDqr4k9fCuBTQbB fbjp4oS9wFhFkjx+BJ3vvDAMpQ8C2W7xRw1HeP8jRdHWEqYg09c+Ux1eIhx3V1rqsgyZ +coQ== X-Gm-Message-State: AIVw112LGkPELuhVYro6bqX7wyUsapRYWhyrnHeF00A+Em+Y83azPXW/ EzKjmUJJNkTmWg== X-Received: by 10.99.181.7 with SMTP id y7mr1294421pge.212.1500441829204; Tue, 18 Jul 2017 22:23:49 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id p5sm7262200pgf.50.2017.07.18.22.23.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Jul 2017 22:23:48 -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-tpo-td043mtea1: constify attribute_group structures. Date: Wed, 19 Jul 2017 10:53:11 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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 2673 368 0 3041 be1 panel-tpo-td043mtea1.o File size After adding 'const': text data bss dec hex filename 2737 304 0 3041 be1 panel-tpo-td043mtea1.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c index 51e628b..ea8c79a 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c @@ -282,7 +282,7 @@ static DEVICE_ATTR(gamma, S_IRUGO | S_IWUSR, NULL, }; -static struct attribute_group tpo_td043_attr_group = { +static const struct attribute_group tpo_td043_attr_group = { .attrs = tpo_td043_attrs, };