From patchwork Tue Aug 8 16:04:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888681 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 E7207601EB for ; Tue, 8 Aug 2017 16:06:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA1CF28826 for ; Tue, 8 Aug 2017 16:06:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CED8F28905; Tue, 8 Aug 2017 16:06:04 +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 8B04428826 for ; Tue, 8 Aug 2017 16:06:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752734AbdHHQEb (ORCPT ); Tue, 8 Aug 2017 12:04:31 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36149 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752311AbdHHQE2 (ORCPT ); Tue, 8 Aug 2017 12:04:28 -0400 Received: by mail-pf0-f196.google.com with SMTP id t83so3473601pfj.3; Tue, 08 Aug 2017 09:04:28 -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=GmaFqoceyOi6CO7vOstbW86Vy2FzJi6UolAgFIAwxIU=; b=rpMXX6JTI4xQCkg1DELeFpBKOGD95NB0apFAqEWzk1ZVkUFZYfNMlzs0o1FrZfntlY AVzdleTz++NC3TJUKzG+ZwfBqNhL6Gf6AE2++0EovuyvcCNVq97h4fsYkfKuvgT1YceK 70HURBvAUDE0i0LIuxCW6+VR6IZgrt9UCxeJzcHsSxF4CWybzWGcx9T5YVdpt/pS+dx5 2voEadWgQc3Ej6bz2/d5Ij0LtfpQVV+CMHWJtQH1KX9eB64Fu8WD0hVHwl8T/DcfZXne w1lHzq7sFdCPZWgbL3s4GbjWIDmB3Piy2g643zv/DYsa/j/gwHX6zkraNKDgwbVecB2l 87PA== 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=GmaFqoceyOi6CO7vOstbW86Vy2FzJi6UolAgFIAwxIU=; b=Hf4lVeGd7vgCwU3XX6cJjAvxl7Vp2p0mLWg6cI6IBAennSyhUttw+rg1DjC0Gl+2UL h+L+NKtQiiZan9mdd5bio2xUYiwYC11F9DpWmL9g1bWNBw2iiF2yi8RvXVNsjw7wy+aw K1Qgmj/HedISMn3QoGGC7iVr3orAj5Tr5kSlwNebJQW9mTBWh7tDwXPhSaiQiIiaTmew H04xYpP0i+k1uEsr+hNWZbETJr/B6DAQ5rRI4JSkufbUqGPu70AHJxRw8oB8NZAuU2xH MOD/Irv3oFY/6ebmQZQEKzNcaCRvmereoCUsSgAQc1o35lQI98Um5y/aeaI1PjCHwDqR 47JA== X-Gm-Message-State: AHYfb5jLH0muqQ00SYRLwKfGPDH3Ey9AobQTXkWMvm89OyervTkC786O Mi/OkOob+S64+g== X-Received: by 10.99.115.4 with SMTP id o4mr4715230pgc.114.1502208267944; Tue, 08 Aug 2017 09:04:27 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id z9sm4937024pfj.126.2017.08.08.09.04.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:04:27 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, sgruszka@redhat.com, helmut.schaa@googlemail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 28/35] wireless: ralink: rt2500usb: constify usb_device_id Date: Tue, 8 Aug 2017 21:34:17 +0530 Message-Id: <1502208259-12287-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/ralink/rt2x00/rt2500usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ralink/rt2x00/rt2500usb.c b/drivers/net/wireless/ralink/rt2x00/rt2500usb.c index 529e059..f4b48b7 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2500usb.c @@ -1911,7 +1911,7 @@ static const struct rt2x00_ops rt2500usb_ops = { /* * rt2500usb module information. */ -static struct usb_device_id rt2500usb_device_table[] = { +static const struct usb_device_id rt2500usb_device_table[] = { /* ASUS */ { USB_DEVICE(0x0b05, 0x1706) }, { USB_DEVICE(0x0b05, 0x1707) },