Received: by 10.213.65.68 with SMTP id h4csp1539731imn; Sun, 8 Apr 2018 06:01:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx48rbP3i8fAhoRewDkaEfgimpCFu0++69xc3EH28Rm/3dh9dzBYQ2nFZBwDV9D07sFDKdfGc X-Received: by 10.101.73.207 with SMTP id t15mr22990759pgs.204.1523192501561; Sun, 08 Apr 2018 06:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523192501; cv=none; d=google.com; s=arc-20160816; b=SLae94RHFQmLA/q8mAovDapyZiC3TVkx57jVVEhYBM7DAmGKExmHLAP99pDTwz582m u78nAVtXiFm1KTOnJ7ZoYSejtljNJc8oqTZKMKywD41tuQkexxPaQw46KNKiVCeM1IqY B1mwBptEm9qV9edjHZOX6RiZ9kzQtA7/Y3P3cvBgEZKLLFYYRX6dt11HPgchUvLKh+Xv N7WfqWNdzooUrYJZgMaERbYdEaGE4ozhPv77iAalD2VV99yfMmDPdtmfrQkzPPCYw0AH x/mFIh+pNb2JpqMnwOL9jKoRqLDf/7/isHm06Sb7Jl3v/e7yHU8tq62t9hkplIF5Fbmh EOrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=2dy8i9uOLpp9UYynze9wNTULj6uccuzE+vHb0p8b/3g=; b=g6o7XzAVSJaCdd3hDXOhqsOZqc/jf5IcDVq/t9H3XjDgULypR/d/SWcykvH9AcOrsm RDGzRIGo9xjGetpkHEyW6GtR4QHzUzTc3MfclUN9Vfv/DyiYNs8Sd6y3tfII2I1Um3lg 7B4Cc/h4OsNhtFv6+uCR0KQsCCQRhHzaGVQp56HU09NdGDtIy6Kvgg7j4cvLaa7nW+DR 3kYxE0OXdGq64Pks0tqeNXBbdGtyrMpWNCCWP7Drofpr06X3BUkXxeC33emK00j2DTr5 8BN//ccgIvwF1xQ5ClitNZ4JHQdioJkgP5Vfa/u3JunewZerT03+r4io6xfPJya7Mry0 Q8aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NJ7kWX0t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9-v6si12286567plk.60.2018.04.08.06.00.44; Sun, 08 Apr 2018 06:01:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NJ7kWX0t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751862AbeDHMCD (ORCPT + 99 others); Sun, 8 Apr 2018 08:02:03 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:39208 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751568AbeDHMCB (ORCPT ); Sun, 8 Apr 2018 08:02:01 -0400 Received: by mail-pl0-f68.google.com with SMTP id e7-v6so1440427plt.6; Sun, 08 Apr 2018 05:02:01 -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=2dy8i9uOLpp9UYynze9wNTULj6uccuzE+vHb0p8b/3g=; b=NJ7kWX0tB31PPF8ydSIgvsymJIGdot5PSLtPmLnWgyWZRAxx6wsveQ7mLTslEGLN2I a5fJuNP0Zdnd0fZe9VqKa/9jc9igIEpx8gsd3ps7146XBrWHJPOOLg+u3svTvxp6CAVf 07z7+4uunm6+r47PioMuSRI+k7nr0+fBDvRlwLNb1+AI+pZqYBauE2lCnpPnGochQSR/ 9uDsrwQsprJSfFGf9ZLj/MqLc60WrXxxPNRu9xltvuAoPf4f2ZW5r7yK8Fn/L+fA++0e P7uLBw4wF82+Br5ogUw3pbMXSdbXyDDsx1S7GxqoUHa5nVee5PT14ERDvy7x/Bq8mp3J zqfw== 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=2dy8i9uOLpp9UYynze9wNTULj6uccuzE+vHb0p8b/3g=; b=X+LCZG3SCQWTtl9yEY8r+7bH7xKFqjMZ5TaSFTwMnR74xCE8fE21Kw2ldRKHpe4hyX dDlrg3zpnpfqAl5YVft3tEsbU+K3tqLRperecbrTd7q8AQ3DFIH5f6cdEStsLGM+apMS jTQ9WXKTpnwrQgg6biK4WWvFe0ZtrerdYVF1aqFGG593pgu9aD/lpgbMAemu6keC6DmF 6G42kVQgLEXs5VKH8HIgX44uTSNSreWyHJVl7IwsrKXfLXBP/qmvgVPCrNcknBQP+Bcf oojB8+DS+ozCj/hDfcKk29C32DtolZ20A1CGg6aol9ZjhJh1SljTJYTVILioUST5kwCd b1MA== X-Gm-Message-State: AElRT7Ex9PNj49HEG5TAbbqmZwuoljWxRK6AI0RGPHFG2d5Vmpi5FQg4 EjdXMktLXS7RtncDf7w6Dow= X-Received: by 2002:a17:902:60cf:: with SMTP id k15-v6mr34400464pln.44.1523188921284; Sun, 08 Apr 2018 05:02:01 -0700 (PDT) Received: from localhost ([106.200.228.206]) by smtp.gmail.com with ESMTPSA id a5sm31068861pfl.159.2018.04.08.05.02.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Apr 2018 05:02:00 -0700 (PDT) From: srplinux2008 To: thierry.reding@gmail.com, jonathanh@nvidia.com, linux-tegra@vger.kernel.org Cc: rui.zhang@intel.com, edubezval@gmail.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, srplinux2008@gmail.com Subject: [PATCH] thermal: tegra: soctherm: add const to struct thermal_cooling_device_ops Date: Sun, 8 Apr 2018 17:31:45 +0530 Message-Id: <1523188905-3066-1-git-send-email-srplinux2008@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: srp linux Correct the typecast with const to struct thermal_cooling_device_ops. It is the last argument to the function thermal_of_cooling_device_register and this argument is of type const. So, declare this structure thermal_cooling_device_ops as constant. Signed-off-by: srp linux --- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index 455b58c..72da745 100644 --- a/drivers/thermal/tegra/soctherm.c +++ b/drivers/thermal/tegra/soctherm.c @@ -926,7 +926,7 @@ static int throt_set_cdev_state(struct thermal_cooling_device *cdev, return 0; } -static struct thermal_cooling_device_ops throt_cooling_ops = { +static const struct thermal_cooling_device_ops throt_cooling_ops = { .get_max_state = throt_get_cdev_max_state, .get_cur_state = throt_get_cdev_cur_state, .set_cur_state = throt_set_cdev_state, -- 2.7.4