From patchwork Mon Jul 17 18:14:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9845911 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 E05DD60386 for ; Mon, 17 Jul 2017 18:14:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6F7228515 for ; Mon, 17 Jul 2017 18:14:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBEF72851E; Mon, 17 Jul 2017 18:14:47 +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 9706A28515 for ; Mon, 17 Jul 2017 18:14:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751435AbdGQSOg (ORCPT ); Mon, 17 Jul 2017 14:14:36 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34984 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751351AbdGQSOe (ORCPT ); Mon, 17 Jul 2017 14:14:34 -0400 Received: by mail-pg0-f67.google.com with SMTP id d193so20268100pgc.2; Mon, 17 Jul 2017 11:14:34 -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=axIqfbNpoH0N/gMwcj7pkR5977h2WY7AQkL6IFrahsA=; b=oibVMleRT7+KsihCgGfkY+yJxotAd821GoojEzpWCD/rsMbov6MKgCfYN0BoGehtyE ML82GXyCi0Okax+EFfc/yUn66qA5P8kBKU4eYISlksDZJxAR33/mWSKjDJlFwpryc6Xn qnDDlmjfSTycv7JmZ9JOT02vmqafd8s0TBTBWPu9l+kVVKbmyDsJmo9b/8bPCzBvCE2O ibG5O2Azu297Ocvv/XByuhj58+qXY48+hh4RKCB+eSv9nimA2i2zXa3Gu1fKSVtgupkw yc+zVZJOXgJkyVkfldn5WAc8aZ9/tb+AD8F5iB8GjiF0ExnIfX7/cUy9K7dpdVQm4wGT lJrA== 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=axIqfbNpoH0N/gMwcj7pkR5977h2WY7AQkL6IFrahsA=; b=C6n2CD/RoagITE2r8DNzvLwlIP9XYahZMUovIWPKvCAiFTilEtpRPOLtKrQaE5+l0y QkfMWoWwo656eB5Lxor0XJenGld8uXzKePX7l8lu/cXopmhYP2PJJzEHJoVufGxEiPTb C6diJyQuUpVMvGBwJYBvxJssbDRCndQ1kINcS56czIn+mhOx2wrnq0SfUnsTC8f1Xleb GCHXWyxrUEPes3zIqekcuj4R19Ks5AgQYAmU0QL2pdroodofxTcBK2ogm4h2+o89Rkrh AhZ7oskvktSQpkHKRCm92nsYd0XZsDj8bAnDWhWkLqSzC7mY9nKKnR1Vv+Zr9KETB10s H57A== X-Gm-Message-State: AIVw110xqo+XV1fbZkF8lds7NAxiLhWdg+bpB0QAZE2jmISe/mz6zpFr W09r15G2I9SpctyJvuk= X-Received: by 10.98.73.65 with SMTP id w62mr20390852pfa.61.1500315274214; Mon, 17 Jul 2017 11:14:34 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.163]) by smtp.gmail.com with ESMTPSA id r73sm37447546pgr.32.2017.07.17.11.14.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 11:14:33 -0700 (PDT) From: Arvind Yadav To: imitsyanko@quantenna.com, kvalo@codeaurora.org, avinashp@quantenna.com, smatyukevich@quantenna.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 10/11] net: qtnfmac: constify pci_device_id. Date: Mon, 17 Jul 2017 23:44:23 +0530 Message-Id: <1500315263-3373-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 Reviewed-by: Sergey Matyukevich --- drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c index 7fc4f0d..02337d8 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c +++ b/drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c @@ -1336,7 +1336,7 @@ static SIMPLE_DEV_PM_OPS(qtnf_pcie_pm_ops, qtnf_pcie_suspend, qtnf_pcie_resume); #endif -static struct pci_device_id qtnf_pcie_devid_table[] = { +static const struct pci_device_id qtnf_pcie_devid_table[] = { { PCIE_VENDOR_ID_QUANTENNA, PCIE_DEVICE_ID_QTN_PEARL, PCI_ANY_ID, PCI_ANY_ID, 0, 0,