From patchwork Wed Jun 21 08:40:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9801205 X-Patchwork-Delegate: luca@coelho.fi 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 7A76C60234 for ; Wed, 21 Jun 2017 08:43:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A9CD2842B for ; Wed, 21 Jun 2017 08:43:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EC702854A; Wed, 21 Jun 2017 08:43:10 +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=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 10E182842B for ; Wed, 21 Jun 2017 08:43:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752413AbdFUImp (ORCPT ); Wed, 21 Jun 2017 04:42:45 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35737 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069AbdFUImn (ORCPT ); Wed, 21 Jun 2017 04:42:43 -0400 Received: by mail-pf0-f193.google.com with SMTP id s66so28662904pfs.2; Wed, 21 Jun 2017 01:42:42 -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=GBpuRZT+d3f11LNj+m+Jk9EswZW1IVFuwCeFz8TZJWg=; b=kPPUFHU0cvli7IssY7kbT+35aLjtkmRNuHDwRTc15VwXMyVPeQ8nLdvfMhxbfgF87F imjUSBE5bZbmq7otm/bAsZ03CW5YlF9f47I892c+nbTkqoM0G6O23F1PECLy7jQAiA2K EhodJuVB58FdDoqKWYZr0uyizbcf/+TPLmY96VVj8qGo/uPXosNUOpKf+jw959BxzAWU F1LURuiyh7VnoBMPhM7Hu0EmSV7u0NEI2sHDL1fjVs82AeWvpxRmibyAeXs0WEYkSn5M 6NdcmKvuAibchnY+FiLc0EVkhASECICL2AvFlMV/HSmhhQwHNceVXecuxi6oUlTcSI9E um9g== 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=GBpuRZT+d3f11LNj+m+Jk9EswZW1IVFuwCeFz8TZJWg=; b=ghZNIU+XwIK9fqJ9ZaAk3Qy92Z0gSJeNRfi5Q0lhZf9/IjMOmHeN3phjGUjKauavZB 1Oxh/KDQeDZj9gjVu0Hh6f6djhbtH3urx5V3uGewM3PdalyNfYmrOBXDGpyepnaj9mvj c7XefdziL+Mm095CuboVuwZuSSfbObW4KVNRxCrisGb//ClN1hsrmg/7xLzF2oWiZaT1 iGeAOj3RGvEcVs037IRfsVyl+hExmM/3qWYS/Dkfm1r5IBz0Zor8nhJuABzYN9SLCMwr MyYtq1WZBsTYLETE0b+SKOI3PbkwOEZE+shd30T/3YEoWTeVL+EnaicTa68D247Q4tO9 niBQ== X-Gm-Message-State: AKS2vOwD2iMDkscGEdkQS7ypOairOcOKwM0hhOuE7EjsLX07CPO16W80 imC1Y7DO+k15PUfyJoE= X-Received: by 10.98.5.130 with SMTP id 124mr34826372pff.209.1498034562198; Wed, 21 Jun 2017 01:42:42 -0700 (PDT) Received: from gmail.com ([106.51.8.234]) by smtp.gmail.com with ESMTPSA id t4sm32014012pfa.68.2017.06.21.01.42.36 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Jun 2017 01:42:40 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 21 Jun 2017 14:10:45 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, johannes.berg@intel.com, emmanuel.grumbach@intel.com, luciano.coelho@intel.com, linuxwifi@intel.com, kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] iwlwifi: mvm: add const to thermal_cooling_device_ops structure Date: Wed, 21 Jun 2017 14:10:42 +0530 Message-Id: <1498034442-17664-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@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/net/wireless/intel/iwlwifi/mvm/tt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c index 453a785..0b5a177 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c @@ -813,7 +813,7 @@ static int iwl_mvm_tcool_set_cur_state(struct thermal_cooling_device *cdev, return ret; } -static struct thermal_cooling_device_ops tcooling_ops = { +static const struct thermal_cooling_device_ops tcooling_ops = { .get_max_state = iwl_mvm_tcool_get_max_state, .get_cur_state = iwl_mvm_tcool_get_cur_state, .set_cur_state = iwl_mvm_tcool_set_cur_state,