From patchwork Fri Aug 11 05:23:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9894975 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 42A3460351 for ; Fri, 11 Aug 2017 05:24:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3332928B8E for ; Fri, 11 Aug 2017 05:24:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27CAD28BB7; Fri, 11 Aug 2017 05:24:41 +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 D1A4628B8E for ; Fri, 11 Aug 2017 05:24:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752047AbdHKFYW (ORCPT ); Fri, 11 Aug 2017 01:24:22 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36848 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750815AbdHKFYU (ORCPT ); Fri, 11 Aug 2017 01:24:20 -0400 Received: by mail-pf0-f195.google.com with SMTP id t83so2577346pfj.3; Thu, 10 Aug 2017 22:24:20 -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=tpHXGqUSHy7CgttKuCHMNAvx7AuN/TAHgnysudXqD6E=; b=Jxe4g6SRyNBvwsJ2I7GlSqV4tntSss1SWF6G2ZA4ILPjz3LRjdbfAL3aF4IAET7M+v w0WJ3nLRrNjKEA/vu4FeG7AOjb+qJINAEu7R+OY9DLrubxhU8GQQlM5OMW3A4pjfT/hB K66+SPy14TyutHj653If9ibm5i5zAYN0M9DBNmJcmrvQiNwOeA2QrAvlesx0X0gJzpPb B5GE84QhoYZuBam/axT9ePCddQ9lrEkSaAVWzXyc4gnbfEWdswt5F+8cMdEZ42fsbLZn fmSOvxXVvVwK8hisQDyaGcSpX0Ysjipu55aMddschNgHwlFv63HuyNZCbCvJppCnvOYu jdeA== 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=tpHXGqUSHy7CgttKuCHMNAvx7AuN/TAHgnysudXqD6E=; b=jqDOShpWwb9xzireylmZv5V9HmlFeE53L53zeZqenz/zaOdYImVwxuhIXH9r+ez7l7 +9EXo+NkqTKYN4KXIqgmkXjVsWna8uGz9/NmXlwes7mJ6MjT4Q8rW5Vwe/CCAEuw4PwM uKkwBIVJJsl8BgFZ1irGuZhfDJw60icQIwjMuagR8LBgoa3UGTg7Gt54HP/G+fXjwp5O X9A9bZO0ZTd2aiCpa6EUi6/xx0H15KbOB/5+8mezbjmagLT58RPaaCYd8smujACW8xK5 vAljMyeaVHD1uhSE2kme5IqdtaQXkVJwyk34g0IsvBRArP5CJ/l/Rs+FAvuHTQRv+FBl 0OWg== X-Gm-Message-State: AHYfb5gm+V/fr/h/H/VByJprc3QQ1epkTTECeRLzrAn0Gt3w5B/J+xB/ sD9fMtwgOnKOQg== X-Received: by 10.84.215.130 with SMTP id l2mr16215851pli.116.1502429060190; Thu, 10 Aug 2017 22:24:20 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id o125sm222216pfg.32.2017.08.10.22.24.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Aug 2017 22:24:19 -0700 (PDT) From: Arvind Yadav To: arend.vanspriel@broadcom.com, franky.lin@broadcom.com, hante.meuleman@broadcom.com, kvalo@codeaurora.org, chi-hsien.lin@cypress.com, wsa-dev@sang-engineering.com Cc: linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 06/20] brcm80211: constify usb_device_id Date: Fri, 11 Aug 2017 10:53:50 +0530 Message-Id: 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 usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: Re-submitting wireless separately. changes in v3: Resolve Merge conflic. drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c index 8f20a4b..11ffaa0 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c @@ -1468,7 +1468,7 @@ static int brcmf_usb_reset_resume(struct usb_interface *intf) #define CYPRESS_USB_DEVICE(dev_id) \ { USB_DEVICE(CY_USB_VENDOR_ID_CYPRESS, dev_id) } -static struct usb_device_id brcmf_usb_devid_table[] = { +static const struct usb_device_id brcmf_usb_devid_table[] = { BRCMF_USB_DEVICE(BRCM_USB_43143_DEVICE_ID), BRCMF_USB_DEVICE(BRCM_USB_43236_DEVICE_ID), BRCMF_USB_DEVICE(BRCM_USB_43242_DEVICE_ID),