From patchwork Wed Aug 23 12:36:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9917307 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 2A5DD602CB for ; Wed, 23 Aug 2017 12:37:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D9FD2885B for ; Wed, 23 Aug 2017 12:37:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 123662888F; Wed, 23 Aug 2017 12:37:27 +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 C5C8B2885B for ; Wed, 23 Aug 2017 12:37:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753975AbdHWMhL (ORCPT ); Wed, 23 Aug 2017 08:37:11 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35425 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753834AbdHWMhI (ORCPT ); Wed, 23 Aug 2017 08:37:08 -0400 Received: by mail-pf0-f195.google.com with SMTP id k3so1349687pfc.2; Wed, 23 Aug 2017 05:37:08 -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=zgAZ9hW5HTJ7hTbupTqCZCIfOsIL54hRSAawHd6hqAs=; b=EuvjMXTtIn8CU4J8l6ooTyXagRsnEJOzGNSX0Rwhrg6hv8GZiBwrw/CjNrzbNDmbEJ U8UUB45msCxzvz3qgf9jAgy6ELj7xVgyNDR9LhWXgeBAi34kgYw51hLeu4zExNc7a1gT VkDZyozgo2ssRwZN71m1ljw8ADmCQwZWOttwx7X8NVrx8nCzP3ZyKU6R9lfvplH+uH6m TBq4lxGX5cKITMJnbwTU83Vfm1zmQuhUY07Lv7p2IM9cbSgFnLHnyxP41cK3IOrvXQuk Pm9ibbnFvl2P5jEdqhoupbJHP8eAewRXjrcW9pjKbFCHCMDh22+FD32/nxkWooow7LZG ot4A== 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=zgAZ9hW5HTJ7hTbupTqCZCIfOsIL54hRSAawHd6hqAs=; b=oNz0pO45+7N/xF5FGwVXT1OIwfKAk4yD7iMhyanZcpCoc9CtCfwk3oF3ZT2QZ+HPVN eO5KpvNnS87NtBpwF3HebWAUOHHF7m5+7F+dpAVrzdjsYT9ig/EFa1beg6QfR7k4kmBi TcP4zaaN31rk45YQX2pWSB1ldD8HRBnquCrYxCihEv7l0A6o/o3bVqe9CjAXqGS/kPUt T3RZPpP5n8gKxAftlOCTXpCchjSAyPylKYdf2ZNXcw9dKqzVjTGm+PUmUCEo4O774mRc j7AS/k7XOtd9HqA6ytcK5DcwvedL2JIJ2LfJ/4+B3uzcKaaastqHBYggUoTJfqQUeRGU sRlg== X-Gm-Message-State: AHYfb5hHIc4xOoCcGmBMYq6FrtDVukbKcL9UhCPwMq/LaDWEFnaNh+gA ODuXyfVaoQOOxogo X-Received: by 10.98.152.133 with SMTP id d5mr2686637pfk.53.1503491827615; Wed, 23 Aug 2017 05:37:07 -0700 (PDT) Received: from gmail.com ([59.94.201.71]) by smtp.gmail.com with ESMTPSA id 70sm2219977pgd.48.2017.08.23.05.37.01 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 23 Aug 2017 05:37:07 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 23 Aug 2017 18:06:53 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, stas.yakovlev@gmail.com, kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] wireless: ipw2x00: make iw_handler_def const Date: Wed, 23 Aug 2017 18:06:42 +0530 Message-Id: <1503491802-1361-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 these const as they are only stored in the const field of a net_device structure. Signed-off-by: Bhumika Goyal --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 4 ++-- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.c index 77f3f92..19c442c 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c @@ -340,7 +340,7 @@ static int ipw2100_ucode_download(struct ipw2100_priv *priv, struct ipw2100_fw *fw); static void ipw2100_wx_event_work(struct work_struct *work); static struct iw_statistics *ipw2100_wx_wireless_stats(struct net_device *dev); -static struct iw_handler_def ipw2100_wx_handler_def; +static const struct iw_handler_def ipw2100_wx_handler_def; static inline void read_register(struct net_device *dev, u32 reg, u32 * val) { @@ -8273,7 +8273,7 @@ static struct iw_statistics *ipw2100_wx_wireless_stats(struct net_device *dev) return (struct iw_statistics *)NULL; } -static struct iw_handler_def ipw2100_wx_handler_def = { +static const struct iw_handler_def ipw2100_wx_handler_def = { .standard = ipw2100_wx_handlers, .num_standard = ARRAY_SIZE(ipw2100_wx_handlers), .num_private = ARRAY_SIZE(ipw2100_private_handler), diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index c311b1a..7194a18 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -10008,7 +10008,7 @@ enum { #endif }; -static struct iw_handler_def ipw_wx_handler_def = { +static const struct iw_handler_def ipw_wx_handler_def = { .standard = ipw_wx_handlers, .num_standard = ARRAY_SIZE(ipw_wx_handlers), .num_private = ARRAY_SIZE(ipw_priv_handler),