From patchwork Sun Apr 8 12:01:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sumeet p X-Patchwork-Id: 896024 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="NJ7kWX0t"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40JsVh2BZrz9s29 for ; Sun, 8 Apr 2018 22:02:04 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751662AbeDHMCC (ORCPT ); Sun, 8 Apr 2018 08:02:02 -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-Google-Smtp-Source: AIpwx4/RiDBia/KQo3BXGRcOqDZaFuFlJAVjdgSISWu6fEWjQF+GuBMVCjiUuiK0xXS9ICWlMNA7zQ== 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-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@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 Acked-by: Thierry Reding --- 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,