From patchwork Tue Jun 13 05:09:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9783119 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 7734360325 for ; Tue, 13 Jun 2017 05:10:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A79028557 for ; Tue, 13 Jun 2017 05:10:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F09B286D1; Tue, 13 Jun 2017 05:10: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=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 26D9728557 for ; Tue, 13 Jun 2017 05:10:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752146AbdFMFK2 (ORCPT ); Tue, 13 Jun 2017 01:10:28 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34463 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752043AbdFMFK0 (ORCPT ); Tue, 13 Jun 2017 01:10:26 -0400 Received: by mail-pg0-f66.google.com with SMTP id v14so16411941pgn.1; Mon, 12 Jun 2017 22:10:26 -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=+IVVF4OJCV5dwkgODL0mshPoe8T1Eut2pJ6zks4CpUw=; b=JRbTBNQRwj74woQZ4sq0ulvV52b2Z1wuMAMEyNphV11lPnmHI38QQrK1lI72XR3dxE GerTV6hEoWUOU0jXE9ke27bjounLtdB86Vjh7e+sWXXu5wlxw4q8q7AUcpSucMAirD5+ bezeznIbHZ0K8NKNtuzG0dmaZxuhDsIHEqrbidrTDk1YOnQTRsxkRJWtyHEP0Lk9Iqhn Xzeod2drtYmkciP3catXq6c1NTDRV+PEBK4PXWZpWtW+V+4I8L7AJlOhxZtS8msbup/h jHXARi2LbrUQy0SfMBwTe9zNFTQreDq66zZVJunS2UMX/GO0JBnRrGykAzQ+y9DCTf+O Wmlw== 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=+IVVF4OJCV5dwkgODL0mshPoe8T1Eut2pJ6zks4CpUw=; b=favuyczlZICZHLrMD6ZvGhyhpK6urQhMsdKY+A0CdcV5X83lTudeuO35DRx6+w9Rb5 04se1ytcwUIAHHBQzoa+IR2zYv1VT5/nOYvD7XpVbce5QDJPxgEqj7gd+U5Qkh9AKYHM RjRXsq5O/TsiQNz8P9nATXfVHDBOGxi76rq8dn7JPQubMqiisjVWP6DHy8Jf8NgZUg3d EEgrbcQxh3FFzTvTLfPyDsgc80bRNcRqIpax4VvW32MiyZ4Xcsj02TRz4rIdTyI+O6HX AJQw0fAtvg+uri+BVQ8JWCLqpRNA9jPntOSg9RnlV3cBgdn+3AgiVjcftv6K97uNRUGX Nv1w== X-Gm-Message-State: AODbwcB5SaGZDfcyYvLsqal5SZw4MjS5rb3R8L/n5emv0CDg2xls+xoM DpmSgqm4UjqW2dKXojY= X-Received: by 10.84.217.149 with SMTP id p21mr59929908pli.121.1497330611930; Mon, 12 Jun 2017 22:10:11 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id p4sm21666099pgf.21.2017.06.12.22.10.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jun 2017 22:10:11 -0700 (PDT) From: Arvind Yadav To: sre@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: supply: constify psy_tcd_ops. Date: Tue, 13 Jun 2017 10:39:43 +0530 Message-Id: <52491fb24dcf85b8e5624a9582d68784e762656c.1497330213.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP File size before: text data bss dec hex filename 4240 200 80 4520 11a8 drivers/power/supply/power_supply_core.o File size After adding 'const': text data bss dec hex filename 4296 136 80 4512 11a0 drivers/power/supply/power_supply_core.o Signed-off-by: Arvind Yadav --- drivers/power/supply/power_supply_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c index 7ec7c7c..2cc64b8 100644 --- a/drivers/power/supply/power_supply_core.c +++ b/drivers/power/supply/power_supply_core.c @@ -669,7 +669,7 @@ static int ps_set_cur_charge_cntl_limit(struct thermal_cooling_device *tcd, return ret; } -static struct thermal_cooling_device_ops psy_tcd_ops = { +static const struct thermal_cooling_device_ops psy_tcd_ops = { .get_max_state = ps_get_max_charge_cntl_limit, .get_cur_state = ps_get_cur_chrage_cntl_limit, .set_cur_state = ps_set_cur_charge_cntl_limit,