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: 778728 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wszq24N7Tz9s2s for ; Wed, 21 Jun 2017 19:26:06 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MqgiFavf"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753006AbdFUJZc (ORCPT ); Wed, 21 Jun 2017 05:25:32 -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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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,