From patchwork Wed Jun 21 07:09:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9800965 X-Patchwork-Delegate: rui.zhang@intel.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 F21DA60329 for ; Wed, 21 Jun 2017 07:12:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC9B628521 for ; Wed, 21 Jun 2017 07:12:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE61A2853D; Wed, 21 Jun 2017 07:12:05 +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=-5.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 75B7E28521 for ; Wed, 21 Jun 2017 07:12:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751093AbdFUHME (ORCPT ); Wed, 21 Jun 2017 03:12:04 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33743 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750987AbdFUHMC (ORCPT ); Wed, 21 Jun 2017 03:12:02 -0400 Received: by mail-pf0-f195.google.com with SMTP id w12so28014998pfk.0; Wed, 21 Jun 2017 00:12:02 -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=19WBPJRsvcrECP9x7YvEdS4N8yL6QEARBgtZK70uAQE=; b=Fv0w33HC8OVh+u6KTzTCVMKZns2ahA0/+T2vJArGL1GmUfDSKqz/e2IFCEYbqE8YIn O7G2USLeShwX19g5BdE2X8zbNZU8OOLEcCssMh1yAwrqORsOB//Gm0ZM2wSVI4QQ1ynD qBdWfxBU43t8Sxj7SJROyzRA5+z+oVu2mkbi7psvqaoEsNdyUEDW/QSLSUhsWeMcNySA H6EjNV8u2Z2xwekSXMog225sR0MjSr8xj8aJc6hpLhq59ukH7ZNNIhIKKdPSw/2yaCiu 5NYhZGQurQJ4QHIo22Foj0F7vOgwialP2WDfhk8oh33yj1B1xAVRHGlqqMCUg0dnx3Zn 3BwA== 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=19WBPJRsvcrECP9x7YvEdS4N8yL6QEARBgtZK70uAQE=; b=B8+K/RqdU0Aj/AVNJL5DxzCz1uzdpdQabCQTiPyYTzzdS4q9ZNfiorl7x4UeMUDFWL zfDTfGtKILJbI0REfvVs7Y2shuAYSHfbp+rEB14whtANs8csGRBsTKvUeihdLjP1BdUu yWHEQtBQHnFcWEVZcuLArhPEO9AnWUXgdvg1sR7nhL9VsxVK/PWFFymS7pLJb6ckKunc 8ofwjW5DkBqk2VIm3G+8FWn+ObaaBBmhqEAkL8/BRtQrQLp7G6aywmZC51sRlumgGTwt j12lOu9zkqg2rbK7m6mC8qOqgyojiJo7NaW+vAKAcVx4yaNFPqIjRtP/RxAv2BjnUYDN Vw7A== X-Gm-Message-State: AKS2vOw3WdXajy1/qd+5u+3352cphl9KG887Pi1i103FaVoq3M7BpnAu o8eWOP+lMNiCqg== X-Received: by 10.98.74.194 with SMTP id c63mr33903163pfj.58.1498029122026; Wed, 21 Jun 2017 00:12:02 -0700 (PDT) Received: from gmail.com ([106.51.8.234]) by smtp.gmail.com with ESMTPSA id 189sm31135123pgi.66.2017.06.21.00.11.58 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Jun 2017 00:12:01 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 21 Jun 2017 12:40:08 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, rui.zhang@intel.com, edubezval@gmail.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure Date: Wed, 21 Jun 2017 12:39:48 +0530 Message-Id: <1498028988-12916-1-git-send-email-bhumirks@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 Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/thermal/intel_powerclamp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/intel_powerclamp.c b/drivers/thermal/intel_powerclamp.c index d718cd1..e4c68b7 100644 --- a/drivers/thermal/intel_powerclamp.c +++ b/drivers/thermal/intel_powerclamp.c @@ -659,7 +659,7 @@ static int powerclamp_set_cur_state(struct thermal_cooling_device *cdev, } /* bind to generic thermal layer as cooling device*/ -static struct thermal_cooling_device_ops powerclamp_cooling_ops = { +static const struct thermal_cooling_device_ops powerclamp_cooling_ops = { .get_max_state = powerclamp_get_max_state, .get_cur_state = powerclamp_get_cur_state, .set_cur_state = powerclamp_set_cur_state,