From patchwork Thu Aug 3 14:55:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9879297 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 848FE603FB for ; Thu, 3 Aug 2017 14:56:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 775F3288B5 for ; Thu, 3 Aug 2017 14:56:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76009288ED; Thu, 3 Aug 2017 14:56:28 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 294232894E for ; Thu, 3 Aug 2017 14:56:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751755AbdHCOz5 (ORCPT ); Thu, 3 Aug 2017 10:55:57 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36920 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751719AbdHCOzz (ORCPT ); Thu, 3 Aug 2017 10:55:55 -0400 Received: by mail-pf0-f196.google.com with SMTP id p13so1721004pfd.4; Thu, 03 Aug 2017 07:55:55 -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=adpb+3Hj0iNFxi3A7IeBplawtfq7oGaqN5Fl9UcRZw0=; b=RfzLfzPVLjGjTDvUNXiKl0KANGhd2qh+eiJL0B9adI7oFCmOyuLeRp/QI6OBf3GYPV MiT+RpjG7e8/ksfAiixcEfS/4Y+L38EaM8AfzCimNNinYtFhcOKfNGfDrs/MoZzCE2Wk Nj/Ipn5i4JBbUeG+ioFK9HAXNNCV0Vwfqy17PYHDkJQDwzuCwKuPLj3pUFzU8gcaWYwJ mW2/adufOe2EBw8iztz1gLPCTSAZQ669Jm/xj96VKQNR8AezNtWxN5s/q5y3fUht9Rg6 JAeOeAr9aJ/3RN7iNxTy61XC0Lq9tM8fgyhwlKoOkO0yOH1tb5dwPedFqIfkA1E7T6Xx TA2Q== 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=adpb+3Hj0iNFxi3A7IeBplawtfq7oGaqN5Fl9UcRZw0=; b=tvlmHYfUR7uZ+nEJKTTtRIet0jap0UuLn3EvofZsiLNj3TsloYV09cCxuR4AB7Oyjr 54jl+Wtvvo4N0QnHwlirrP4B999miXd1zyleeBIkB8Db4ScgaT51RUQxjeGU1xTD2yYt IS/IhfZvNu2VPZi8dHq3HoJBonIhHceMkE4X0UyH7BJPg52BeQBvz+EvPIIBQwwICWDN n20mJQSF/ZMndZMO8XCT67YC5vDr8lz88lnGll+kh2/xJxPtxQKtDscP4Oo9JHu1Lj8r DEmRn+eDhtnICiag2P4hFf8LBIFyvOeAibqrveQfWjsOhXrU/JMO2zQyzf9rGsUDnkGW qvDA== X-Gm-Message-State: AIVw1121V3IzjGaPmyrOrXHXWCpsL0oRZpTVQFQAO+dPw3KJjhlGSxoW eud4XeL0xBbvWQ== X-Received: by 10.101.87.140 with SMTP id b12mr1818239pgr.174.1501772155237; Thu, 03 Aug 2017 07:55:55 -0700 (PDT) Received: from gmail.com ([117.196.102.0]) by smtp.gmail.com with ESMTPSA id r86sm32333873pfi.138.2017.08.03.07.55.50 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 03 Aug 2017 07:55:54 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 03 Aug 2017 20:25:47 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, ath9k-devel@qca.qualcomm.com, kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] ath9k: make ath_ps_ops structures as const Date: Thu, 3 Aug 2017 20:25:31 +0530 Message-Id: <1501772131-13038-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 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 ath_ps_ops structures are only stored as a reference in the ps_ops field of a ath_common structure. This field is of type const, so make the structures as const. Signed-off-by: Bhumika Goyal --- drivers/net/wireless/ath/ath9k/htc_drv_init.c | 2 +- drivers/net/wireless/ath/ath9k/init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c index defacc6..da2164b 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c @@ -71,7 +71,7 @@ static void ath9k_htc_op_ps_restore(struct ath_common *common) ath9k_htc_ps_restore((struct ath9k_htc_priv *) common->priv); } -static struct ath_ps_ops ath9k_htc_ps_ops = { +static const struct ath_ps_ops ath9k_htc_ps_ops = { .wakeup = ath9k_htc_op_ps_wakeup, .restore = ath9k_htc_op_ps_restore, }; diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index fd9a618..bb79360 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -104,7 +104,7 @@ static void ath9k_op_ps_restore(struct ath_common *common) ath9k_ps_restore((struct ath_softc *) common->priv); } -static struct ath_ps_ops ath9k_ps_ops = { +static const struct ath_ps_ops ath9k_ps_ops = { .wakeup = ath9k_op_ps_wakeup, .restore = ath9k_op_ps_restore, };