From patchwork Fri Jun 23 10:36:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9806221 X-Patchwork-Delegate: andy.shevchenko@gmail.com 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 9DC6A60349 for ; Fri, 23 Jun 2017 10:37:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E71F28539 for ; Fri, 23 Jun 2017 10:37:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82A132868F; Fri, 23 Jun 2017 10:37:15 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 D088A28539 for ; Fri, 23 Jun 2017 10:37:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754711AbdFWKhO (ORCPT ); Fri, 23 Jun 2017 06:37:14 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35676 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754654AbdFWKhN (ORCPT ); Fri, 23 Jun 2017 06:37:13 -0400 Received: by mail-pg0-f65.google.com with SMTP id f127so5653069pgc.2; Fri, 23 Jun 2017 03:37:13 -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=1f+KOqPszYz8zv0vf8RVPTjRxSeLGSIvbUnfdoBhkeo=; b=PggFUsUwPFx+AcrdXJhQfxWGO3n9lJ8RtBRhyibHiArMDXJaBN6NfZNb3BuWxno/yK B9NOL+bmQysCYXYZQ5ibxjwfWqg7nkQVjHOfE8aRNwam42TKtaalQTpVlLQcFfDYnUZb GrpMxtkgctqXR40Zlp15uXwN3arDnfn9484ntQ624wyTI99sFtR2ff5d80HHFZHnJ7Lj hHN2N28fJHftuMFvE/MgYmCGcfz1+C1B8SEzKLHC5Z3IFiuaVbmKefsqZDDDe34Uzx83 aef+AcFklHrDx6KkixDFZhgb8wFwTacdvuLXkCq7RTk1sdS8tg8Pb0eD6czERhhIVscM Gw5Q== 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=1f+KOqPszYz8zv0vf8RVPTjRxSeLGSIvbUnfdoBhkeo=; b=PnCodO/mgOkFHxlEiW8/h52pu2ZckK2WoMtKunEkNZJFKx/MZOaU526rOn4V8DvRcq RYBgI96qrqGV7Hc4BiNM4YHBIz8bgyXIahgpWOoXlwR01UstMnQ6jQrd97jrk87XqW0u FilKfbO2D8Zcwsd2Qi0g+tvDvmuiirb5b+dbwp0C5XEmuXR3kLa27PcHzPTUSGmMf9eF 5r1fSSEJGZ8+53wGgykRsL+55AnlVi3UV88PeukrELutVh6ye1yfDa8+fLQ9By1GnQnp jeJ1kgMakoRmQGN0m1q9p6z6GBuR0a34E423cwWIPnCn8YiDSwhnw5Hh9FB6nV9dJSlo KNhg== X-Gm-Message-State: AKS2vOzY1I13AD1TCpBdrp8qjyzpHmUqhpAgksmKAZw1343bratQUw78 oQY3AG+vQKI9vA== X-Received: by 10.98.155.18 with SMTP id r18mr7505083pfd.198.1498214232656; Fri, 23 Jun 2017 03:37:12 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id e77sm3429268pfk.123.2017.06.23.03.37.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Jun 2017 03:37:11 -0700 (PDT) From: Arvind Yadav To: jlee@suse.com, dvhart@infradead.org, andy@infradead.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] msi-laptop: constify *_attribute_group Date: Fri, 23 Jun 2017 16:06:30 +0530 Message-Id: <3369111af9de4ba057d5f52b8ac71235fd9d130b.1498214112.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP File size before: text data bss dec hex filename 5396 5016 85 10497 2901 drivers/platform/x86/msi-laptop.o File size After adding 'const': text data bss dec hex filename 5524 4888 85 10497 2901 drivers/platform/x86/msi-laptop.o Signed-off-by: Arvind Yadav --- drivers/platform/x86/msi-laptop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c index 9e90827..61b9014 100644 --- a/drivers/platform/x86/msi-laptop.c +++ b/drivers/platform/x86/msi-laptop.c @@ -563,11 +563,11 @@ static DEVICE_ATTR(auto_brightness, 0644, show_auto_brightness, NULL }; -static struct attribute_group msipf_attribute_group = { +static const struct attribute_group msipf_attribute_group = { .attrs = msipf_attributes }; -static struct attribute_group msipf_old_attribute_group = { +static const struct attribute_group msipf_old_attribute_group = { .attrs = msipf_old_attributes };