From patchwork Mon Apr 9 02:52:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: srplinux2008 X-Patchwork-Id: 10329993 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 7B2236020F for ; Mon, 9 Apr 2018 02:53:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A99728848 for ; Mon, 9 Apr 2018 02:53:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E71F288D8; Mon, 9 Apr 2018 02:53:17 +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=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 0477A28848 for ; Mon, 9 Apr 2018 02:53:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758120AbeDICxP (ORCPT ); Sun, 8 Apr 2018 22:53:15 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:38852 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758068AbeDICxH (ORCPT ); Sun, 8 Apr 2018 22:53:07 -0400 Received: by mail-pl0-f65.google.com with SMTP id c7-v6so1013215plr.5; Sun, 08 Apr 2018 19:53:07 -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=b90k7yP6wniYVAHRBhgWVxN7G2M7YP++FNi1p68ELZ8=; b=Q7LJlH61y1vNa51Utt0oGHPKGgcS9RRC7tjs6oH8Bs5Q/8/peBf6YRCkJRK2UZ01bp /a7WVbCTJec15jPNWf7HcFTfwixtHM4XVUxw2R9sQd8SvoJErADawST73GQfa279AdwU oXaeYpgepu62u6JynkTnsj7aa+sZymbXRoQaEvYjhCDYt2Aw1fkO3ujSrOcHETkvDnLl hn2dvZe1MsWUum+xCmE+ByFialF7nKfojwpwCORAlEhNPA3NoXlx4uR40yF08DgeTolF Ac7czSI4Gak60u0r6aFrdVPP3MwA8ukBgZFacplpIfbzK+YoJ/cR1tGwNzz1JOyCDaGC D56Q== 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=b90k7yP6wniYVAHRBhgWVxN7G2M7YP++FNi1p68ELZ8=; b=Gidb+iUhYXnEON7fmmqMyV2xdI1Q9mNarwDQrY+ffR5xgoDKcc9pbRvLSxND5vPicq m9GFs8boHet/fUpNoCispXNeKWgJor13XaAUr5s3qpcxvXnb+AvE0FcXrYJ7/py4XM3R lnS8cuSkEipZ2FfIKJkv7DbJ6qrYxe4iL3Nt4oi79knG1LqH2Gw9rLadLn8CG5cIkENJ /U3RTe+NiYJkpAxkS1ckj+p40/wHeK04cfCYQrPJ0X2DPtjZdfUo91A7dL/6P/FDf0rp ykslM9W2Df+gDuOOcRoE7y2AYFc70cZmoQTzdP3R52inAwJK+vejTXsMEmrftA+RrklL PK3g== X-Gm-Message-State: ALQs6tD8cUZG0exHmKLTTvXM0z6zXH8QLCA7kSpMEunuxeojDW9eWfhG pMZ/wmwiAVeaftAnK644b0A= X-Google-Smtp-Source: AIpwx48PlCrrbS+P2yt3wpGXQoG5k233stabuCuyYPrEPHy5DurDimlMJ1HmnqV3u2su9afgEnsJHA== X-Received: by 2002:a17:902:b283:: with SMTP id u3-v6mr7404369plr.263.1523242387276; Sun, 08 Apr 2018 19:53:07 -0700 (PDT) Received: from localhost ([106.200.228.206]) by smtp.gmail.com with ESMTPSA id q67sm32456633pfg.39.2018.04.08.19.53.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Apr 2018 19:53:06 -0700 (PDT) From: srplinux2008 To: orjan.eide@arm.com, rui.zhang@intel.com, edubezval@gmail.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, srplinux2008@gmail.com Subject: [PATCH] thermal: devfreq_cooling: add const to struct thermal_cooling_device_ops Date: Mon, 9 Apr 2018 08:22:55 +0530 Message-Id: <1523242375-3937-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 Add the typecast constant to structure thermal_cooling_device_ops. This 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/devfreq_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/devfreq_cooling.c b/drivers/thermal/devfreq_cooling.c index ef59256..80efc4e 100644 --- a/drivers/thermal/devfreq_cooling.c +++ b/drivers/thermal/devfreq_cooling.c @@ -392,7 +392,7 @@ static int devfreq_cooling_power2state(struct thermal_cooling_device *cdev, return 0; } -static struct thermal_cooling_device_ops devfreq_cooling_ops = { +static const struct thermal_cooling_device_ops devfreq_cooling_ops = { .get_max_state = devfreq_cooling_get_max_state, .get_cur_state = devfreq_cooling_get_cur_state, .set_cur_state = devfreq_cooling_set_cur_state,