From patchwork Wed Sep 13 19:01:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9951901 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 A41CE60245 for ; Wed, 13 Sep 2017 19:02:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9692D28C2A for ; Wed, 13 Sep 2017 19:02:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B61D28C68; Wed, 13 Sep 2017 19:02:31 +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=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 38C2728C2A for ; Wed, 13 Sep 2017 19:02:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbdIMTCP (ORCPT ); Wed, 13 Sep 2017 15:02:15 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36720 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751810AbdIMTCN (ORCPT ); Wed, 13 Sep 2017 15:02:13 -0400 Received: by mail-pf0-f196.google.com with SMTP id f84so439303pfj.3; Wed, 13 Sep 2017 12:02:13 -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=MUQyCn66U93ZoWtOqVQNEhPyvoUX4is/vRyBBaAv/zg=; b=k6uUZF1am9o4hkEVlW7cKy8Q+xRoH2j5suZGYY6R2ffUIfuOEgY3dAIYGUAk7DnNIl uYfUq+2si5zN2/S0UiuGdPCZGk4VR35FiLU5scxlmsnsmVsNWczedz+vpufFEOvSTR9y Kt24nbyDKZJewdl1cSvkf3wpptsPaZ2+m51K/vgZXWxlRYQBSTwzdeQntOHa4mTsljfn VL8+yokyqNqYALYCe9xIuTjFdBWqKw4hsF/OXvxtfyCtZKzvNejOTnDIFZlSEEuIO2SF GWfvFm6BYHGTni/MTso4IryyAXfU8eAB9UqCLL8+/Pm842Y6tWPh29pV1Wf5h9QChSpP p7ew== 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=MUQyCn66U93ZoWtOqVQNEhPyvoUX4is/vRyBBaAv/zg=; b=OGqcQ+tZphmtSexA6xnO6VotfhUo8KvAfcWQ1w/2yKHzx0MIkyRBhyXBFTm2q2OK19 JSanIKYfJyq3Z3pNLee+zJz7n1drJkAniz6kLKCxxkRdqDeOi8yD1P8HCynDKYbjvh53 uszLsR0jL6SzhZW7V7IT3zioDexwR+6UPWLbpGMNroWUiorsqlscR+iR20f4SlytUhVe dHRVt/AATs9Eqtowjlv5HfNxIdAxAj5P6YQfCcGwHTQyiwo0IPy7oc2vi1hrtm0GYvV6 hwsJjguEfQGFKHzk31REPrMYnmj0n4gHD+PiEDGa5+k9wOuJOSShFSBqbJiRTApneX7o nyJw== X-Gm-Message-State: AHPjjUgv/duPdvP6TYWTbirk48xkhs/iDP7a+vcyVAj7il9oAYk6YT58 UP1FRPVY9OqyBg== X-Google-Smtp-Source: ADKCNb4riUj5FdeEqCb//9V3UvTdo0kVPmysZpxz+PNLnZukBZ5eWVhR+AbWpqKxUXZ1vwkvqErrgg== X-Received: by 10.98.43.67 with SMTP id r64mr19072205pfr.233.1505329332641; Wed, 13 Sep 2017 12:02:12 -0700 (PDT) Received: from gmail.com ([117.196.99.243]) by smtp.gmail.com with ESMTPSA id 72sm16922808pfj.102.2017.09.13.12.02.08 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 13 Sep 2017 12:02:12 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 14 Sep 2017 00:32:05 +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: make ath10k_hw_ce_regs const Date: Thu, 14 Sep 2017 00:31:52 +0530 Message-Id: <1505329312-26432-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 Make them const as they are not modified in the file referencing them. They are only stored in the const field 'hw_ce_reg' of an ath10k structure. Also, make the declarations in the header const. Signed-off-by: Bhumika Goyal --- drivers/net/wireless/ath/ath10k/hw.c | 4 ++-- drivers/net/wireless/ath/ath10k/hw.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/hw.c b/drivers/net/wireless/ath/ath10k/hw.c index a860691..07df7c6 100644 --- a/drivers/net/wireless/ath/ath10k/hw.c +++ b/drivers/net/wireless/ath/ath10k/hw.c @@ -310,7 +310,7 @@ .wm_high = &wcn3990_dst_wm_high, }; -struct ath10k_hw_ce_regs wcn3990_ce_regs = { +const struct ath10k_hw_ce_regs wcn3990_ce_regs = { .sr_base_addr = 0x00000000, .sr_size_addr = 0x00000008, .dr_base_addr = 0x0000000c, @@ -457,7 +457,7 @@ struct ath10k_hw_ce_regs wcn3990_ce_regs = { .wm_high = &qcax_dst_wm_high, }; -struct ath10k_hw_ce_regs qcax_ce_regs = { +const struct ath10k_hw_ce_regs qcax_ce_regs = { .sr_base_addr = 0x00000000, .sr_size_addr = 0x00000004, .dr_base_addr = 0x00000008, diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index 0c089f6..f80840f 100644 --- a/drivers/net/wireless/ath/ath10k/hw.h +++ b/drivers/net/wireless/ath/ath10k/hw.h @@ -369,8 +369,8 @@ struct ath10k_hw_values { extern const struct ath10k_hw_values qca9888_values; extern const struct ath10k_hw_values qca4019_values; extern const struct ath10k_hw_values wcn3990_values; -extern struct ath10k_hw_ce_regs wcn3990_ce_regs; -extern struct ath10k_hw_ce_regs qcax_ce_regs; +extern const struct ath10k_hw_ce_regs wcn3990_ce_regs; +extern const struct ath10k_hw_ce_regs qcax_ce_regs; void ath10k_hw_fill_survey_time(struct ath10k *ar, struct survey_info *survey, u32 cc, u32 rcc, u32 cc_prev, u32 rcc_prev);