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: 9801291 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 4A48760234 for ; Wed, 21 Jun 2017 09:26:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37CC22855A for ; Wed, 21 Jun 2017 09:26:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B45328546; Wed, 21 Jun 2017 09:26:00 +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=-0.4 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C00A928515 for ; Wed, 21 Jun 2017 09:25:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=VVCQKCljWNqVHUI23DaHRcyHFEpdJrAZZBmP+yXHWiw=; b=Kni NE1d0ppY/PJLA/ildFkjNZJEhIrZHwpftEKXiJxPoC/9cWTcUBH3JV5xsH3yMo8Tgj35Z8BR6IiN4 Kdm0LM3WrD+pYCeNGlFRFxTrM8neHRMVd0HxxYpp1xbTPiPrS8lsGaRDLBw9IIX/5qS7kF4tPh/vp HMvd5FtvzhpVH5m2152r3ggIta8uVw3sK7JVlFQ5lLwxcFyZJzBXMo+hiYU55Ixj2DhuhjXp6ulAx AZkyakwHjQ5lDYrkk29DYsvUZHgIbhgiOtW+AAscUsnejmzMYanyvHYKBz0RQEmBOrdMe8xI6HTZR 6eiSn3Y5EPtVw7GZo1BRRKJfCEfpq5A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dNbta-0000X0-Dt; Wed, 21 Jun 2017 09:25:54 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNbtW-0000Qo-5i for ath10k@lists.infradead.org; Wed, 21 Jun 2017 09:25:51 +0000 Received: by mail-pg0-x241.google.com with SMTP id e187so17812163pgc.3 for ; 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=XbiL/mkHwdvxJejhRuQJx6GxWoHOdIkWDFlyI5qYzVfnIf997EkrfvmT8KSJp7pA4y nGiKXnka602M3F/g2I7aJJQGJwLsgo7H22BMRZKgoNGkAuxhVLjhDr34BEIqMIsHdcre Ra0RsOnOgdrEJEy2YLrWRKHsirUwyZ88Va035FSInFk/J1kCof0IjQho8jm7+FnWdTKG an+IsDpJz9kgUxezkJb/1UMdawWnmbV5RkASp0x5AQSzvJOqRcAEkIznaOE8GIFVBzV1 Gz1Nj8BOKBFvnaueJU3Oj7VTxSMEZ/AV59BL21XlmJE4EqYXj7dt4NCPI/WS+TMG+f/t me5g== X-Gm-Message-State: AKS2vOwxWzG8I5KP82vR0ODn0XU/8Yjkj9lENfzD34ehV58ASUTc154t /TzNaVQdcxYnQQ== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170621_022550_253272_7124AE0A X-CRM114-Status: UNSURE ( 8.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bhumika Goyal MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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,