From patchwork Mon Jul 17 18:09:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9845885 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 6BF3C60386 for ; Mon, 17 Jul 2017 18:11:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6241228515 for ; Mon, 17 Jul 2017 18:11:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 55C682851E; Mon, 17 Jul 2017 18:11:04 +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 0A84E28515 for ; Mon, 17 Jul 2017 18:11:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751503AbdGQSKp (ORCPT ); Mon, 17 Jul 2017 14:10:45 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34857 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751473AbdGQSK0 (ORCPT ); Mon, 17 Jul 2017 14:10:26 -0400 Received: by mail-pg0-f66.google.com with SMTP id d193so20258161pgc.2; Mon, 17 Jul 2017 11:10:26 -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=VF/bSJlD1x1RFpW7wasj9FVinhNsUIvKIGwRemx52Ro=; b=nduh+Dm+coLk6ym/eh3flJLcecewgipw25wfb+GJBKwadypco3VSmRTT9ZKGZoQDPm EJ30sPMCbgraTKKBXconan0TK9OdzqWW/FxgFibw0briDig2/YPWMcnL6dP77ZhUwGWE X6/bkuGpm0CmTvTNVJFxqyye5n/orObySooagljFKU/VgG21UeP8yWvUL7p2laBv6dEs 5I4OdE4n0AgutdbRPUqhISBmkM6UNSIPF6r0ueozkk+EJ3sJun5GIKa5hvGnLjap1Q5u N7c0/zDUA4Vvvu+33no/wbtEV9W1tmcqJ4/Yy+BmnfBqRmfysfVlQ5ht783ZRkP9kLTl 4+nQ== 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=VF/bSJlD1x1RFpW7wasj9FVinhNsUIvKIGwRemx52Ro=; b=h0szLjYhdSEQ949VhvdjwZPRjqADEmcoROx4j/5k2T5u7jDtxK3y7I6ERBu8ZNvow0 uez1g22XjBJgvRXgp8Qma/HsuUH14+ZPJUomXehc35R2m4G/wuZPwxvNIQPwD98zRdzL 4ezCD8oSvo5KVXGLryNmH3NErnWfFPKY2udbuGkK2NF1NdZAEDW/d4HO9B4QCCqrYX/k nMoqBWy1VcJlz4UVU5ErKtDc66sXeA9lWDSXfZz+6rYU/KH5u/KkypbZvQpvfgCgak3o pog0Yj7zQc4Ha3ln6KBJ9kbwnOWbKKSQ8fY1leF6Ot6SBlHU2XLEYFdSKNy1zLMHor/l EzEA== X-Gm-Message-State: AIVw113z717lIe5cAsnXskWEj/8s0yj4VHyoqoTv4gbbF9JhFst6z7BV h9v/diaHuPuokORMLHI= X-Received: by 10.84.232.130 with SMTP id i2mr7770434plk.278.1500315026072; Mon, 17 Jul 2017 11:10:26 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.163]) by smtp.gmail.com with ESMTPSA id m8sm12316823pgs.24.2017.07.17.11.10.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 11:10:25 -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 07/11] rtlwifi: rtl8192ee: constify pci_device_id. Date: Mon, 17 Jul 2017 23:39:55 +0530 Message-Id: <1500314995-3181-8-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 1899 928 0 2827 b0b realtek/rtlwifi/rtl8192ee/sw.o File size After adding 'const': text data bss dec hex filename 1963 864 0 2827 b0b realtek/rtlwifi/rtl8192ee/sw.o Signed-off-by: Arvind Yadav --- drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c index eaa503b..bc4e561 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c @@ -354,7 +354,7 @@ static const struct rtl_hal_cfg rtl92ee_hal_cfg = { .maps[RTL_RC_HT_RATEMCS15] = DESC92C_RATEMCS15, }; -static struct pci_device_id rtl92ee_pci_ids[] = { +static const struct pci_device_id rtl92ee_pci_ids[] = { {RTL_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x818B, rtl92ee_hal_cfg)}, {}, };