From patchwork Wed Aug 9 16:30:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891031 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 28DC960384 for ; Wed, 9 Aug 2017 16:31:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1801C28138 for ; Wed, 9 Aug 2017 16:31:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D35F289B2; Wed, 9 Aug 2017 16:31:27 +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=ham 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 DA06628AAB for ; Wed, 9 Aug 2017 16:31:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754129AbdHIQax (ORCPT ); Wed, 9 Aug 2017 12:30:53 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35107 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753846AbdHIQav (ORCPT ); Wed, 9 Aug 2017 12:30:51 -0400 Received: by mail-pf0-f194.google.com with SMTP id j68so6597133pfc.2; Wed, 09 Aug 2017 09:30:50 -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=JVLhuKLyzSIcgdnNcuQAklbE+vuUwRPgtZ8K1Muwvvc=; b=Sx4la0kaX8XgUILHlhxOuRFVCDeu4e+T/E6tsUML1DZByj8T2KrRGO9Y/vJu9ny34P 7P7TF0EiqfXKjJTs8hzEFwzfDJ81u3TI7Gd+ztFjcMJBDswNGQ8guwWZoHQt1R7EoBwq v+q8I3UpttLniqG5y3MG1G7542Ye7+DtCBuxFHYxC7EZPd3BGvTv1/ichVUzXY0k3NWU OkLyL/oFqRjX02ueG3AcLAnnv8B+XvTMJVXCD2UjaFOAe3VhrIbcPBax5+q/J7VQe/7s VuylpC/vxBEzLUVP6xCw+50lO5PZAOBFZ5xO7EsQaN19GZJnpQI58PreVut63mIWsvwH rtBw== 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=JVLhuKLyzSIcgdnNcuQAklbE+vuUwRPgtZ8K1Muwvvc=; b=ZjsyoIYpf8nx5H3Sq2akoxxGg4aP9WxVn/32nccrylF7OFYTtiarzs/zwRFT3WXvXy C+MQcA3jlYws2gIMrntp96nLaeaSjPNFLBJ+8UqxrfYose716lJ5VwIc1Ac7XvBN81Y5 9XzDydpYdqw05swdkuwVjtOeda+CdYpCBo+0XJWMLGegyi2CxR2czn9801iitbzdzCPK H2soSLud87ILDOKwyPToDw/H5tuH7HwWEpQjyqU9uWR3ZTE9+5kJvuSBc6L1BdwKLLRP +J0hTuLdx/8orUs7apdm2VJsOX0DOZs5Z6ZJtL7kZZZrq/TQXUZQ2iyjdxbSC6Eyl9IK gfAA== X-Gm-Message-State: AHYfb5hKD2uKC+c6UJGuswR0kjDq5xiuRiOCgvLx7wEZBPCW94FUukpL EOyn7+4m6dSMjA== X-Received: by 10.84.178.162 with SMTP id z31mr9539548plb.301.1502296250506; Wed, 09 Aug 2017 09:30:50 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id g22sm11655036pgn.65.2017.08.09.09.30.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:30:50 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, Jes.Sorensen@gmail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 17/20] rtl8xxxu: constify usb_device_id Date: Wed, 9 Aug 2017 22:00:39 +0530 Message-Id: <1502296239-21673-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/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 21e5ef0..7806a4d 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -6190,7 +6190,7 @@ static void rtl8xxxu_disconnect(struct usb_interface *interface) ieee80211_free_hw(hw); } -static struct usb_device_id dev_table[] = { +static const struct usb_device_id dev_table[] = { {USB_DEVICE_AND_INTERFACE_INFO(USB_VENDOR_ID_REALTEK, 0x8724, 0xff, 0xff, 0xff), .driver_info = (unsigned long)&rtl8723au_fops}, {USB_DEVICE_AND_INTERFACE_INFO(USB_VENDOR_ID_REALTEK, 0x1724, 0xff, 0xff, 0xff),