From patchwork Wed Aug 9 16:25: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: 9890985 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 C38DB60384 for ; Wed, 9 Aug 2017 16:25:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B245228A85 for ; Wed, 9 Aug 2017 16:25:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A710128A9A; Wed, 9 Aug 2017 16:25:50 +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 6F8F828A85 for ; Wed, 9 Aug 2017 16:25:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753985AbdHIQZj (ORCPT ); Wed, 9 Aug 2017 12:25:39 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36522 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753195AbdHIQZh (ORCPT ); Wed, 9 Aug 2017 12:25:37 -0400 Received: by mail-pf0-f196.google.com with SMTP id t83so6586719pfj.3; Wed, 09 Aug 2017 09:25: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=mFpafeIowQkyXFyMa7kqOSxvTgjxtUVi09Rk6xgQLeI=; b=PbpXOHVmq9udYCNCSTd5/qTH8FcszakpYWAl/HWck/IMu2NJeWMXq9oP72mapKRnT7 GfJVKFg1iyY2ZMZ6iv/dvhszRZXwGfs6w2dvCrNFwnzGZjoC26/2mMETxpFcKWUXFBHH t17B7jfuL0ZENtkxXylzgOrbjIJr+KsqNBjNtGftlqcZMx1WX97Q+wwL1Nfmr4C11TEL mipgyK0bHXhz2ARMRRP/izuaqe7DVitZ19/UTbj/D0CFLzLuFGtRt7DpzPZtqAjreOrY vk9bZFP9jKpJz4/4KoOpQnNf09UsB8cI45FQR0WHpzDEO2ZhWslXS1KNmvinR7OZr7P4 xpkw== 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=mFpafeIowQkyXFyMa7kqOSxvTgjxtUVi09Rk6xgQLeI=; b=MUfiMtkOpULTdOutiknPd53HqccozETw6MIyg2LjlIXCVfdpuYM3qv6M2YQba/7THG ov9it8XHHBJVuhAIuxFo3lrr9YZEnnZlhLDxh8FoxWRzae3MnEHw7Og3R9jc4J8B57xI cRWt+Vmrl+vkuIxPUGgcLDxOwA6Fwsy6K7lkIj+K0W1ZX4Mt5OEhCcKEEouFK9bA+qSh RA2Noq24Ur62xdVU8cn4dArNBjfeIUmFgvSnuMxrPVDtuLcGqO8ZHyU457ajB6wZyKOF FFXtm3OaqSyV++9pgElinBfP+w1JeyN0ku2AP2jur4jvtwq3ZSUcfzHc2rloPukxidJ6 Cnww== X-Gm-Message-State: AHYfb5g9FyaJPi/L7b5X2r3ycl4sNLWsabeOZmIFL3vKNMuT/nOkrxhM RhXx/wOVNrxxMg== X-Received: by 10.98.141.149 with SMTP id p21mr8929327pfk.264.1502295936781; Wed, 09 Aug 2017 09:25:36 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id l24sm3532063pgo.43.2017.08.09.09.25.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:25:36 -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 v2 06/20] brcm80211: constify usb_device_id Date: Wed, 9 Aug 2017 21:55:26 +0530 Message-Id: <1502295926-21042-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 --- changes in v2: Re-submitting wireless separately. 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),