From patchwork Mon Jul 17 18:09:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9845893 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 998B460386 for ; Mon, 17 Jul 2017 18:11:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F28728515 for ; Mon, 17 Jul 2017 18:11:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8423D2851E; Mon, 17 Jul 2017 18:11:43 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 3B78528515 for ; Mon, 17 Jul 2017 18:11:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751546AbdGQSL2 (ORCPT ); Mon, 17 Jul 2017 14:11:28 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34087 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751436AbdGQSKY (ORCPT ); Mon, 17 Jul 2017 14:10:24 -0400 Received: by mail-pf0-f194.google.com with SMTP id o88so2254144pfk.1; Mon, 17 Jul 2017 11:10:23 -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:in-reply-to:references; bh=VYndN1hbDOaGylA3rs7XbHBA/4g6YxRqp3vkMZvQhSY=; b=bVULzzYutyUohRFSA01rytKZ7wtrU+61efro89Kom4cStMdRqoxjx2bx5qyuQAsVT3 F2iCxDkFHCDQnfaitlSdzP9v1O4T1uCEV6ijqVYEnSzkZHoh+EYi3RYaCNApz8OPytvN hIhxUK9rZrSo2b+fZZ2O7aycvzzcBHcOBQ8E4WT98ghfimNVkycYC290h6tYukzPeCMk jYp4J8PtIViYJHgEE4DtPCIctPVolxdeXJWqXJlEWYLL6htNr+noX3iZNWYb+mzfwBkd I6CMxm+hEhE0p4aN+ypMhmhFxltKxPf/wW87B/v0xKiqAm0WHIaGjsaNelYY063+mSI4 yhkA== 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:in-reply-to :references; bh=VYndN1hbDOaGylA3rs7XbHBA/4g6YxRqp3vkMZvQhSY=; b=Uf2gMZHo7eYjjltuLEeeBjXfn4lKYYCjm4RSxYsfpTb6vwb+LihpQy4XDHwp+bmkI2 suLjzCYekZDqSQRsFSmU0qiF3KbuRFzhO+X+tV3tk9U0crX7z/6mPiV+IxZ4iCVRve/O G5jeBZrc5Fvaqe9qI4BzVGkzOlH+Ye8XUWOUSl01BAPZuFderxtOQyQikKzmpV17PvTm i1geWpRm6q+IGqf5GaKt+9kEtr8vEX7me/cSLIPl8D98/Iprj/eRfjR4ca3Z+9/lHM6B do8PFqNK81OJc8pEYgUtnEhWExDzNJx0InmxdMtBY5uzcN4xLvuSyitne/yjjXV1oT3t wAEg== X-Gm-Message-State: AIVw112IuqT+c8rcc6aAzRnnGHQf65PTGrlOj56kEyTIA+xR9tWKrcPI RJuWyEZykhE5zw== X-Received: by 10.84.224.195 with SMTP id k3mr3537788pln.72.1500315023503; Mon, 17 Jul 2017 11:10:23 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.163]) by smtp.gmail.com with ESMTPSA id m8sm12316823pgs.24.2017.07.17.11.10.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 11:10:23 -0700 (PDT) From: Arvind Yadav To: Larry.Finger@lwfinger.net, chaoming_li@realsil.com.cn, kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/11] rtlwifi: rtl8188ee: constify pci_device_id. Date: Mon, 17 Jul 2017 23:39:54 +0530 Message-Id: <1500314995-3181-7-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500314995-3181-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1500314995-3181-1-git-send-email-arvind.yadav.cs@gmail.com> 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 pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: text data bss dec hex filename 3090 912 0 4002 fa2 realtek/rtlwifi/rtl8188ee/sw.o File size After adding 'const': text data bss dec hex filename 3154 848 0 4002 fa2 realtek/rtlwifi/rtl8188ee/sw.o Signed-off-by: Arvind Yadav --- drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c index 774e720..25b1e6d 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c @@ -376,7 +376,7 @@ static const struct rtl_hal_cfg rtl88ee_hal_cfg = { .maps[RTL_RC_HT_RATEMCS15] = DESC92C_RATEMCS15, }; -static struct pci_device_id rtl88ee_pci_ids[] = { +static const struct pci_device_id rtl88ee_pci_ids[] = { {RTL_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8179, rtl88ee_hal_cfg)}, {}, };