From patchwork Tue Aug 8 16:05:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888677 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 30C27601EB for ; Tue, 8 Aug 2017 16:05:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23417287D2 for ; Tue, 8 Aug 2017 16:05:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 183D328905; Tue, 8 Aug 2017 16:05:40 +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 A68BF288D4 for ; Tue, 8 Aug 2017 16:05:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752684AbdHHQFW (ORCPT ); Tue, 8 Aug 2017 12:05:22 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34097 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752185AbdHHQFS (ORCPT ); Tue, 8 Aug 2017 12:05:18 -0400 Received: by mail-pg0-f67.google.com with SMTP id y192so3409309pgd.1; Tue, 08 Aug 2017 09:05:18 -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=czOIsFBF5dplVqDZFGEWPuMOUZcii2r903dQuzBq4js=; b=svElZHwpDB5O2n4zoYNKOnnoyBkk4X6BCpQEz1B7kFhAJrqlXczy/Fvpboq+7zWwG1 VgKaPb7bPxXxC02+pshk9L4qfYHCL8TL9zg3ulWe3rRndMoGWghQroc4U6un12fMRn05 WJHlKLk8v6cWb+tw5elrJOOsy/SVLnCxh0vOKey9uTOBDDmM0CQUcsAGNdE4NRL0FvKv KMzESk/a+5/Z7wkjIZVAHarAThSYkRLdyk03HLo/2WZBddOMTMc758K8VRoRN3WmmPMJ ph0P2oiqm6EKbUH4tJH5cC4LtQ7+J+KizgatykOY+IpQSnzzIHhTVOe1CMqkOUU2oBYX zjJw== 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=czOIsFBF5dplVqDZFGEWPuMOUZcii2r903dQuzBq4js=; b=JxwvuYgCinBUqsmpEG9oxKblaRQVc5Q7um+71LLxzibViEhjr7r8VNKdDLCzUCl5qX t5GzGHvfV01n9ey9NMXF9cLa8fnnMY8y77u6KGJVbrbW0rxm6LTSciZaFkIb4LqNF4Am FdSyzioFVHplb0DmaB2rD9wT4/9/uUVYDGkEbfES8jQvBaSWHNQqDMD7oBGoxqJprZWP 0XWWusRdercsM9PQxdho/k/TkPpxLBY8RpukCMJtdLUSI+oSo9coyq739/UpDPjNXynF rInN2QbpRJOwe1kmH6fQg3LhNatiqid/5ZRCZnRo+jvNF0ySgldi5uOdwFcfIEbJiUc/ dIfw== X-Gm-Message-State: AHYfb5g1lmOLXz8bZRQ5eICb7Ja9BhVTvuXxD3R2Qsu0J2BQSxS29P4l v4ZLasoJMVGMYw== X-Received: by 10.99.164.18 with SMTP id c18mr4614584pgf.311.1502208318291; Tue, 08 Aug 2017 09:05:18 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id h14sm3805089pgn.34.2017.08.08.09.05.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:05:17 -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 32/35] wireless: realtek: rtl8xxxu: constify usb_device_id Date: Tue, 8 Aug 2017 21:35:10 +0530 Message-Id: <1502208310-12392-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/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),