From patchwork Mon Jul 17 18:16:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9845919 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 EF66360212 for ; Mon, 17 Jul 2017 18:17:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5D422851D for ; Mon, 17 Jul 2017 18:17:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DAB6828522; Mon, 17 Jul 2017 18:17:10 +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 942862851D for ; Mon, 17 Jul 2017 18:17:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751340AbdGQSQy (ORCPT ); Mon, 17 Jul 2017 14:16:54 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35700 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751314AbdGQSQx (ORCPT ); Mon, 17 Jul 2017 14:16:53 -0400 Received: by mail-pf0-f194.google.com with SMTP id q85so20360947pfq.2; Mon, 17 Jul 2017 11:16:52 -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=2yOwerZItyXs18eQdoyddP2ShMCASH6SJbba2Z+sJDs=; b=N4pkOpAPpv0VfQ3zsZptGRRHYqzhCxt+r0YnRfMk+YowencWxtBl4lu2eFbq4ND+tX nQyFtCpm/OkwxuMES2B9/3dybpULZL6Xn1+N4JirYm+ycsTglajU2rTQiGzyExc3BtSO tfPr7cAe+ofczw5xLQOD+HxNNVDIJCqtozeLyRawr2psUgXAr1vsntIW4VVYABtHQovh KLAgRQW4Rr0D0Wbgh65+2YW0UJYf0Qp5qQUIEcUmfNwJ1nJHZkla73tqnRtcl7URck+x LEA1TceCnliuo5Vpcimmx3avqI+gvwGDYHn0ARm0vVHwHF6+XHHQkb8b4takXWViqxJJ uQqg== 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=2yOwerZItyXs18eQdoyddP2ShMCASH6SJbba2Z+sJDs=; b=T9l2YAYLCxhJayZub7H0GkGasM93WmK0ALjwtpdr90PqKrfYRMUmSRjVI002X8doSE IazfKaQepvuVO5SvSQH5siXVYaCiKnrUtXyBBD3vv08LXRPgFQwawCfBme1jxtLWU2ZB 2YGO3wPFor6mYpfPIaiieSVlb9M/aeEh6bXYPTav5RqhYxA2UuXC9TPSstQZGGw2sRmt cYvKQe153ffbNxPRL+XUnNUpm23UdCOiw6fCJHHvjqIvU9bFvLhwVmNJ1oiiQGk0et2O qoVdKbfsDhqqWVbfJio6Zci0p5MXgfLelyrJjEK7+LiSY3xwezrqp4qjuslsEWZIXbp1 9kOQ== X-Gm-Message-State: AIVw1112KNGttYBoblHbq9hQCtQzlzt1SyhU7m7G9dj1IigQExdKivKR ZFg4wU9SyuSPYQ== X-Received: by 10.84.231.207 with SMTP id g15mr32327425pln.146.1500315412718; Mon, 17 Jul 2017 11:16:52 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.163]) by smtp.gmail.com with ESMTPSA id q19sm16618958pgq.51.2017.07.17.11.16.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 11:16:52 -0700 (PDT) From: Arvind Yadav To: arend.vanspriel@broadcom.com, kvalo@codeaurora.org, hante.meuleman@broadcom.com, franky.lin@broadcom.com, wright.feng@cypress.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com Subject: [PATCH 11/11] net: brcmfmac: constify pci_device_id. Date: Mon, 17 Jul 2017 23:46:42 +0530 Message-Id: <1500315402-3439-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 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. Signed-off-by: Arvind Yadav Acked-by: Arend van Spriel --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c index f878706..e6e9b00 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c @@ -1951,7 +1951,7 @@ static const struct dev_pm_ops brcmf_pciedrvr_pm = { BRCM_PCIE_VENDOR_ID_BROADCOM, dev_id,\ subvend, subdev, PCI_CLASS_NETWORK_OTHER << 8, 0xffff00, 0 } -static struct pci_device_id brcmf_pcie_devid_table[] = { +static const struct pci_device_id brcmf_pcie_devid_table[] = { BRCMF_PCIE_DEVICE(BRCM_PCIE_4350_DEVICE_ID), BRCMF_PCIE_DEVICE(BRCM_PCIE_4356_DEVICE_ID), BRCMF_PCIE_DEVICE(BRCM_PCIE_43567_DEVICE_ID),