From patchwork Wed Jun 21 09:23:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9801293 X-Patchwork-Delegate: kvalo@adurom.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 44DF260234 for ; Wed, 21 Jun 2017 09:26:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 341D928563 for ; Wed, 21 Jun 2017 09:26:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27F592856D; Wed, 21 Jun 2017 09:26:03 +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 CB68528563 for ; Wed, 21 Jun 2017 09:26:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753002AbdFUJZb (ORCPT ); Wed, 21 Jun 2017 05:25:31 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33543 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751056AbdFUJZa (ORCPT ); Wed, 21 Jun 2017 05:25:30 -0400 Received: by mail-pg0-f66.google.com with SMTP id u62so20928902pgb.0; Wed, 21 Jun 2017 02:25:29 -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=WhjWKjkCEubeXmembUG3UbWAp5LHZz1ev7aIFrGVF3Q=; b=MqgiFavfW27X0touTkoD4/blS/SyvJQKuF+1vVHZbwXOXMKgBc4Gq72XzbRmOci4+t ZQjysuWN6i5f/4Fpk0HcI0ApL9NajiW9lZ18IuYx+d/KcRgyLU59OuMzZV10+5IXuKKs 1rV2CQ9Chro/gGNkj6gfO1KiQfR+bj/IQM9a2kcZzGBalm70j6jCj46/paNejni+AixI +eieWIeEoZU+Ndehe+NqunIKT0nqx3lTxv5V2FgLcqn/+njRLQUepT6XBfnSwdktOrCP SlKyb48uR6pebO1EEnZtRaKnMLadq35WuY+DqUZTFwfbbJJEsN1evKSOpZN8Z1oMqoW8 OsLg== 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=WhjWKjkCEubeXmembUG3UbWAp5LHZz1ev7aIFrGVF3Q=; b=YqDOh7uVUGZGiBvuzHrjLSFhmGbpd+98WC2CiOwpw3GIGLhhVu7Edin4r0EjxR4C6I ukeejElX4HEOlVZpytAnW8x4f2YTfkGKEm1hbot9tFZXJ4OA1WhVEzbhUVPvzMaUP+cU HFD/lhiHxqEmQuag0mO12SRtTc08SjR8dFDjf6qy7Lv5ffKpTd5Uu7WB0VqdXAgG6L6r pqAK98l5ji2h/8YEFdJitwLlym3RUWwqjmaXG2qL1uE0wci9Q0BqgmDK1GRcXel8mdSI 3Zx1rDh1fcL2p9w9Ol2z5DKp/kPIc/kBqavLOT3FFUqYSfq53ZUuNTIqF3JZxHjX/p8y r1+w== X-Gm-Message-State: AKS2vOwtTFKRKktddKTKfsekQcGKkJo1vJyKoiZJTkCOFT4FSLZ67GBb rdKVBjGXj8l9C2gmsxw= X-Received: by 10.98.7.204 with SMTP id 73mr35485900pfh.175.1498037129282; Wed, 21 Jun 2017 02:25:29 -0700 (PDT) Received: from gmail.com ([106.51.8.234]) by smtp.gmail.com with ESMTPSA id q7sm32177569pfk.108.2017.06.21.02.25.24 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Jun 2017 02:25:28 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 21 Jun 2017 14:53:33 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, kvalo@qca.qualcomm.com, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] ath10k: add const to thermal_cooling_device_ops structure Date: Wed, 21 Jun 2017 14:53:30 +0530 Message-Id: <1498037010-21024-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/ath/ath10k/thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/thermal.c b/drivers/net/wireless/ath/ath10k/thermal.c index 87948af..ef717b6 100644 --- a/drivers/net/wireless/ath/ath10k/thermal.c +++ b/drivers/net/wireless/ath/ath10k/thermal.c @@ -63,7 +63,7 @@ ath10k_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev, return 0; } -static struct thermal_cooling_device_ops ath10k_thermal_ops = { +static const struct thermal_cooling_device_ops ath10k_thermal_ops = { .get_max_state = ath10k_thermal_get_max_throttle_state, .get_cur_state = ath10k_thermal_get_cur_throttle_state, .set_cur_state = ath10k_thermal_set_cur_throttle_state,