From patchwork Fri Jun 23 09:10:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9806027 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 7949C60349 for ; Fri, 23 Jun 2017 09:11:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6963728560 for ; Fri, 23 Jun 2017 09:11:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CE112859E; Fri, 23 Jun 2017 09:11:36 +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 E35DC28560 for ; Fri, 23 Jun 2017 09:11:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754179AbdFWJLf (ORCPT ); Fri, 23 Jun 2017 05:11:35 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36573 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754032AbdFWJLe (ORCPT ); Fri, 23 Jun 2017 05:11:34 -0400 Received: by mail-pf0-f196.google.com with SMTP id y7so6537799pfd.3; Fri, 23 Jun 2017 02:11:34 -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=qPEAByVQp7fBq5uPmf1LpDb8oOwwJq2ULp6pe7VUVE0=; b=IvJ8COuGx7hVvj16H3QTBWKIdMVOKjxls0YP6y1pIU1/1qVB6bex0B+7Rt2BxNLz+E LIf+UzMHlc+wbzii9Ox/KLt43mbz8nmpZX5HaCRJcB7aFA0ceH//BM1sLPthzk1qF+qk kSry4a4Wj98o7bq+4JMxraKF9o6yuFzeW/GzerI1qCYW8D4G4gNJZE2gPjfZ+AJflUyY Q0Nbp1CHw7TQukcqZYO1W3aMUKctdqyLXBxPXH4NfHPJ4lSSdBhTqFGUIVrub2DOWpUE FKUEDcS1M3CPZVvoQCwhsM+MJXhwEh4P9S2Pbh5gGKJvTr1h9MX648W6YiIh2uJ7U/PK c+GA== 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=qPEAByVQp7fBq5uPmf1LpDb8oOwwJq2ULp6pe7VUVE0=; b=dR/6FEehYGINswKeTWsKYNyfyjWs7woHdDH0Zrez/tSMtLgdXVPDvRolZ7Z5YBeTx3 CRUqx8hYt33OCpxU1jU+msGplExUZFjIvIr0K6uAnpjeOWoIBgygG1XgMMJt7M77JiKv nn6VgC0I1n8p8GhkqDccw182L78rnnsbonkA63zxGrD9GeoHdSXTPHwFPUtWzVlwvctg F1o2D+Z4cRLfdomdFIIJQIkXbMq+7RuhTioALQqc2iZnHwfu7bmaigXk6mn6dYowoLH7 LgXFkXxxLmg4vuJDHdUbk5ZlaB+ZV6XKlZzs15EzZXZ7SprpZGiTxIlxi6uygh0QZKOj tWcw== X-Gm-Message-State: AKS2vOxhrRPXOVK6rqqqLfAOxZ8sUvkoBXjzZJf4qv2/wVke1tTMRIg8 tqin7Ra8bXnHRw== X-Received: by 10.98.193.129 with SMTP id i123mr7184271pfg.138.1498209093672; Fri, 23 Jun 2017 02:11:33 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id 5sm8027652pfe.60.2017.06.23.02.11.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Jun 2017 02:11:32 -0700 (PDT) From: Arvind Yadav To: corentin.chary@gmail.com, dvhart@infradead.org, andy@infradead.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] eeepc-laptop: constify platform_attribute_group Date: Fri, 23 Jun 2017 14:40:51 +0530 Message-Id: <9baf6855f23251fed917c90596ea9c6f17d9b9c0.1498208487.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 9934 1136 2 11072 2b40 drivers/platform/x86/eeepc-laptop.o File size After adding 'const': text data bss dec hex filename 9998 1072 2 11072 2b40 drivers/platform/x86/eeepc-laptop.o Signed-off-by: Arvind Yadav --- drivers/platform/x86/eeepc-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 2426399..5a68196 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c @@ -445,7 +445,7 @@ static ssize_t cpufv_disabled_store(struct device *dev, NULL }; -static struct attribute_group platform_attribute_group = { +static const struct attribute_group platform_attribute_group = { .attrs = platform_attributes };