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: 9951903 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 CB7B660245 for ; Wed, 13 Sep 2017 19:02:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCECC28C68 for ; Wed, 13 Sep 2017 19:02:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1C2E28C6B; Wed, 13 Sep 2017 19:02:44 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham 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 62F9A28C68 for ; Wed, 13 Sep 2017 19:02:42 +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=jV+0Von1bxh0m25hpPRztkcBrhVLJ7tWh9rvJq+8aXc=; b=Lov LoNvbjObfj1vtDNilMYkCOfOCBB3eUe6HpFLNo5neI0GV9MzgMWUPmuItIHdcPzJxsu7YYk1qvPpx W5Nmq+Mu+r92ukSnVFk4/VrChyrH2KozO1WUFuyAzNYLwZFQO2JgD5DXLJ/vnu5hNFi8vDjbXvraX ekrlgM7eYo4udvazajX6ok3Oi8DLnQwtWl8DNXQVC05OvZ6fTJr7QQ+NIHX3jZBLMG6N353eR/zQR xKYHKqdOK5phl8WgAwky0TKKTzN8c0eb/ZFQSdQVFmYdkFfOT72IXSTthO2y1sqwb8RcCnhzqZvUi /95HrNx9rlHxDVbrHfK5ekKBzvwKZiw==; 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 1dsCvl-0004JC-CB; Wed, 13 Sep 2017 19:02:37 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dsCvh-0004GF-PH for ath10k@lists.infradead.org; Wed, 13 Sep 2017 19:02:35 +0000 Received: by mail-pf0-x241.google.com with SMTP id q76so432198pfq.5 for ; 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=dRmw2T/r7AY9vV9H5pa/9NACdBioEUIAa8AK+MhAOj1f5HODYc+xyzKbb8N8pEWaKP E7N0n5/5lPVnhBDY18/C3+O5gTXmmbFJwvVMeYmd+fxhaqwpT2Ujnq5c8NFlmBs35xaV enLMXRkIpHGjiyNwFbqLey8iuNOj8FK8Gxz5fbUAmCH1PHvtLTY0oLvxBhwtY9OvxSQn K2p5UrUZx7ZCnL1vsj9r+y/1wqi6nMT4k770rEhTr3z0zPExB/t7Mvl57Rmp/fAkDVBN FPMMmhCQShLytLIoqD7uA195tey4JY4KTeTP4OYYwU0Ytc44rGkdHDwnh7/tjpj9F0as SrWQ== X-Gm-Message-State: AHPjjUiOXPVZCMT0boQWt11FAZveCZ1PBlWO+XQBKrrwiGpwAQ32kTFn qEDUJXqf0oh2+Q== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170913_120233_905208_1142EC34 X-CRM114-Status: GOOD ( 10.34 ) 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 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);