From patchwork Tue Aug 8 16:01:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888637 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 11381603FA for ; Tue, 8 Aug 2017 16:02:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 043A4287F0 for ; Tue, 8 Aug 2017 16:02:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB1FD28935; Tue, 8 Aug 2017 16:02:15 +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 A430C28900 for ; Tue, 8 Aug 2017 16:02:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752246AbdHHQBk (ORCPT ); Tue, 8 Aug 2017 12:01:40 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36114 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752122AbdHHQBi (ORCPT ); Tue, 8 Aug 2017 12:01:38 -0400 Received: by mail-pg0-f68.google.com with SMTP id y129so3391164pgy.3; Tue, 08 Aug 2017 09:01:37 -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=5QSP/bfoI7uyvBeRA8OgPApuT6/M/mmZKGUV2I3t+CA=; b=HL/gKxY2tMUx+uA00L9Yb+C7w1WQ1dRNAk+2uhUg+G7J1HvD5Wmbf3arBbxYINhxjd SIpTHwsShcNEL3X97CF27p9TZjesW4nFXPXusyWRWv4RloPoLhHhtC8HeZH+0qih5NA2 v728pepdF7aiTPawk98vy3MZZlzhF5K0X88q3xMDEeSD+eUE2UNvetN3SZBe4PwIOLPU u/NJCJc4Cf1sRaa4JUXX2bRvyGtots1iBx4gmSkhSuU+tv6zX6VNfVGgqa/t+3O3/SoK 9LrC62dXoEgfX4bkVm4ut1JS3R9D3Wr9vYN3uoSkKp9+/hyrvxXyCnUnuBqaPDQEFcCC 6wBw== 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=5QSP/bfoI7uyvBeRA8OgPApuT6/M/mmZKGUV2I3t+CA=; b=FNalc9ws52vKT5yf62gbREDKNclVBb0c4zj8jJ643t8f4AkXNJfDiShGdGYArtqicH ay7hr2LLeBJM1+74oPLcDcl5T/ovFfLuUyZKflhJToUaMsQ0Ns8d7LbMyGHc0xHjBFme mEzuoAD6A+uvz8rhY3DLfSfTfJKmG00+yj/9FW7ZRmNXfwG33A+UIhlxnZdAblhQSem1 3S5GpuUSQL6sqtYPIvlhIqSrxXfDNu8svlrSEpy2PQg7nFWt17QbvoyEJkQsoDESwBy1 OtFcGkclSM45nxlRqcduvyWVrbosNQVp0d6NAlgromyI1baALi5zwy8csQktTJd0fV4f WIww== X-Gm-Message-State: AHYfb5gEVax0rLoCyklMULgZNx6/tW81+AADxiKwqBLT/WEzjnV5BhxE TCvUqviiEtStRQ== X-Received: by 10.98.158.66 with SMTP id s63mr4945954pfd.126.1502208097278; Tue, 08 Aug 2017 09:01:37 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id n16sm2947601pgc.84.2017.08.08.09.01.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:01:35 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, petkan@nucleusys.com, arend.vanspriel@broadcom.com, franky.lin@broadcom.com, wright.feng@cypress.com, hante.meuleman@broadcom.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com Subject: [PATCH 21/35] wireless: broadcom: brcm80211: constify usb_device_id Date: Tue, 8 Aug 2017 21:31:26 +0530 Message-Id: <1502208086-11916-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 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 --- 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 0eea48e..51562b0 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c @@ -1463,7 +1463,7 @@ static int brcmf_usb_reset_resume(struct usb_interface *intf) #define LINKSYS_USB_DEVICE(dev_id) \ { USB_DEVICE(BRCM_USB_VENDOR_ID_LINKSYS, 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),