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: srplinux2008 X-Patchwork-Id: 10328317 X-Patchwork-Delegate: eduardo.valentin@ti.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 579636037F for ; Sun, 8 Apr 2018 12:02:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49D6328A93 for ; Sun, 8 Apr 2018 12:02:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E96028F40; Sun, 8 Apr 2018 12:02:16 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB 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 E58E728AEB for ; Sun, 8 Apr 2018 12:02:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751664AbeDHMCC (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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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,