From patchwork Wed Aug 9 16:29:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891021 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 730FB603F2 for ; Wed, 9 Aug 2017 16:30:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6264C289CD for ; Wed, 9 Aug 2017 16:30:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5734228AA3; Wed, 9 Aug 2017 16:30:24 +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 0E60828A9B for ; Wed, 9 Aug 2017 16:30:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754071AbdHIQ3a (ORCPT ); Wed, 9 Aug 2017 12:29:30 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36507 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752630AbdHIQ31 (ORCPT ); Wed, 9 Aug 2017 12:29:27 -0400 Received: by mail-pg0-f65.google.com with SMTP id y129so6270346pgy.3; Wed, 09 Aug 2017 09:29:27 -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:in-reply-to:references; bh=kM3LzG6XdrZZCcJDOszehWYOUVc6ktbDTAAXbcVu+0w=; b=S3+Zp2bjlJJE/8j4R0V/lnL5BCyHQeleBsdS4TsSSHEgTKfGg/WLOfZCeIOFBTayLu afsIk7d5/4R+ES1Xf+sufhNQZK+q8KBTaVrvTXW7S1bhpFDbUZaFi6IaEAPgfJvH/9cC dhPyMB3F9/IQtXZ4iMpNDE4ajuLBZVyuhrBjvx+3FH88huUmys7q9REGLs5c26t8yiyz B3mYuKUaFfU7X1C1TBWa3r8mRAjnPdvt0YGwZCR6/+18tcAaZGbEKDtxhhWWLjaQVd7O v5sxTsoV/VINnYZClBnPBfKD0AHm76QjX87ZL8jv8pWNHcIRdsoAPcbcPl3fm84fFyqB EpNw== 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:in-reply-to :references; bh=kM3LzG6XdrZZCcJDOszehWYOUVc6ktbDTAAXbcVu+0w=; b=E7FUK/TdMZb+lLkg1CI5W3bzkX4u6O2VQO8uQ/yPypoV/xjKcJSYtidZ5G8RmPCEVN js1SuLzsGFrvwIVVvAeZKRFXBqXA7/ucJ6XBaWKHWMLFM7tyALPsv6guHFhLOf1cmVDr DYDADC1QJ7XzCZ0if4BzKGgfNjmaY5r+UeE4wLA0z9w9YiF2H5XwGOsOgogZxdHGEHAF S1xDhJMFOVtm2kVHQ+vlHaZGT0UaPmhlh69VD0G0xuXVesI9YkL4O06pXZKVBclsQbbz HswhZv33MhydTzNBCYmz7e5x3edUUlOcCC7jRC/wvc8TQxcuM0fUhwM8xDKRr2AxrNUc 0Veg== X-Gm-Message-State: AHYfb5gB5teBdnuSdqmetiHbflJfyGufyXpmeUUxF5EbrXWun71O+Pvb oIYMQcVEDKJRiDYDk5E= X-Received: by 10.99.43.67 with SMTP id r64mr8132168pgr.320.1502296166763; Wed, 09 Aug 2017 09:29:26 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id 133sm7146186pgc.19.2017.08.09.09.29.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:29:26 -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 v2 14/20] rt2800usb: constify usb_device_id Date: Wed, 9 Aug 2017 21:59:15 +0530 Message-Id: <1502296155-21470-2-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502296155-21470-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502296155-21470-1-git-send-email-arvind.yadav.cs@gmail.com> 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/ralink/rt2x00/rt2800usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800usb.c b/drivers/net/wireless/ralink/rt2x00/rt2800usb.c index 685b8e0..cd9547e 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800usb.c @@ -915,7 +915,7 @@ static const struct rt2x00_ops rt2800usb_ops = { /* * rt2800usb module information. */ -static struct usb_device_id rt2800usb_device_table[] = { +static const struct usb_device_id rt2800usb_device_table[] = { /* Abocom */ { USB_DEVICE(0x07b8, 0x2870) }, { USB_DEVICE(0x07b8, 0x2770) },