From patchwork Fri Jun 23 08:35:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9805935 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 E234F600C5 for ; Fri, 23 Jun 2017 08:36:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5D972871C for ; Fri, 23 Jun 2017 08:36:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA2A628722; Fri, 23 Jun 2017 08:36:42 +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 5CEDC2871C for ; Fri, 23 Jun 2017 08:36:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752878AbdFWIgl (ORCPT ); Fri, 23 Jun 2017 04:36:41 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34464 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751217AbdFWIgj (ORCPT ); Fri, 23 Jun 2017 04:36:39 -0400 Received: by mail-pg0-f66.google.com with SMTP id j186so5379514pge.1; Fri, 23 Jun 2017 01:36:39 -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=1pgsP8qUNcV9bfJX6CImC1l1KIAmtNZ0Me5PzYKTewk=; b=gPNTGiJsuhli7OlFy1u2bXDmscbUfVD9iJsBsIYY2E97c2mUdSumlK+PqQ/dkIK0Mx UT+1B+Bk4UkCbtV+QThuXICarkRH8vOFGQG4GR/A+FJH0hZ4xCfZfskAEk+CBUOc/zUX UuWe8inZApaSudQlStH8MMiRLY/VUbOewMkpBXqX9qWu4PBrZ9j2mfzl9SjuvoFl15Gy QRVJrFBKI4O9IkbDAc4Pznwi79QokzTo2j1kvVS6RIuoH81gX7qjHqAe9O0e8MZESMPi ZgDU5Dk/B0MmjFTO2CFydEfgzAxQ1NWLGXmEpGQDQZgkCDaCXQ2TgKm0FvYK5cknuAEK BsPQ== 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=1pgsP8qUNcV9bfJX6CImC1l1KIAmtNZ0Me5PzYKTewk=; b=QlqxXg0Jdlyn1SF+BbioJe7EcX/VNRYhz7xWTwhmjgQilvbUp0cTLrhMCNIbgtjCMo +8Ir2zRlLA9UAu4ZduSdDY/j05bgoFuhfpswUb6VExWUZN7nD/c9tLi9R1clk39aFCP8 vehbtEoI7sTijDuv6pxQlBYu422GkvGk60nPBKvsmuGwLdkRseO4JF9eLsl0tAS2pUTv WMD8T3r0n+CS33QMeCH216UKZRRv7Ya48oBWEYmziiK2potqDOpkMhQfFgt2hyW8C5ea NrNx717HOfAAzc90ysHF9hYQXzj2fNX8Rr0ROS8zLrddBREddSBKH5+W9I8PK2yIUK1O G8uA== X-Gm-Message-State: AKS2vOz8TTOdBVhRAVpcC4v14hK3LMExoBT46iEaaKIG0SGQwkDnpr7M SyXMjWRbZXpmnw== X-Received: by 10.84.132.2 with SMTP id 2mr7557261ple.46.1498206998661; Fri, 23 Jun 2017 01:36:38 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id 84sm8750500pfq.125.2017.06.23.01.36.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Jun 2017 01:36:38 -0700 (PDT) From: Arvind Yadav To: coproscefalo@gmail.com, dvhart@infradead.org, andy@infradead.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform: x86: toshiba_haps: constify haps_attr_group Date: Fri, 23 Jun 2017 14:05:56 +0530 Message-Id: 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 1471 528 8 2007 7d7 drivers/platform/x86/toshiba_haps.o File size After adding 'const': text data bss dec hex filename 1519 464 8 1991 7c7 drivers/platform/x86/toshiba_haps.o Signed-off-by: Arvind Yadav --- drivers/platform/x86/toshiba_haps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/toshiba_haps.c b/drivers/platform/x86/toshiba_haps.c index b3dec52..fb27366 100644 --- a/drivers/platform/x86/toshiba_haps.c +++ b/drivers/platform/x86/toshiba_haps.c @@ -132,7 +132,7 @@ static ssize_t reset_protection_store(struct device *dev, NULL, }; -static struct attribute_group haps_attr_group = { +static const struct attribute_group haps_attr_group = { .attrs = haps_attributes, };