From patchwork Wed Aug 9 16:29:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891053 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 7AEA060384 for ; Wed, 9 Aug 2017 16:32:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B0EC289C6 for ; Wed, 9 Aug 2017 16:32:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F00928A9C; Wed, 9 Aug 2017 16:32:42 +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 397F1289C6 for ; Wed, 9 Aug 2017 16:32:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753453AbdHIQ30 (ORCPT ); Wed, 9 Aug 2017 12:29:26 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:32787 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752630AbdHIQ3Y (ORCPT ); Wed, 9 Aug 2017 12:29:24 -0400 Received: by mail-pg0-f67.google.com with SMTP id u185so6294006pgb.0; Wed, 09 Aug 2017 09:29:24 -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=xJ2teiAcvnoq6R5QNbS3vMBLn+hQenejd0edMFDBbQg=; b=OfTvFTI9N4/8B5r40RN/3Lg4x71qCc58BRs76ju5DjbsfwHDP3AlL0nArc63VE/3zT K+bYVXzo0kV3y0lh+93RAW0kjE0IJp3u7Hgy+3ou6aThS7+KdDFfSSKEtL12sHv9jDSF taPPSnAj6hAQFCo3sEFUOQgqMdjuTzC56B6+hT7ba2exQec4y/ZKv2Sk8nKyaAgo799x avWqr+eIE8YJtTeXkoI1Wsmbaef7A3kOLaATQ5V4dEktjiQytutF3F17PZCw/9/G2rJv Rmn7xE9910IUsF32HFkD2Ip5empHoHSn/oQlHtNlWPIV7z5ZlN40XAvtxhFOj3fX6P1g NJEg== 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=xJ2teiAcvnoq6R5QNbS3vMBLn+hQenejd0edMFDBbQg=; b=hCsdTvaxtaGhZsijptd0HbutcIHLnL4nmxmnBttS3xDDitzOCTHcvza9ESrqQVCqNh G+aAsw8Lh07h6Jgcpt+41A0JxgUhwVmwsG+KwwltflHw3NX2rOxHiGh9abTx49WlXsgx ZZC5BvEOUdpwiCoNbfjHMpe4tmWIwUMc0vHB2NqrpteujRx4a1PK6bcy6XVHDkD3E7XK mlLGQuOpYsn6fj1//JNQrkNuGN7K/W+eJP7Rtv+/kQv+d4+dRCUiU+qWb30jBCZSmk+F EOAamD7fwMkWAbrGD6/rVQ3O7P5l6FWbiU4VWPceu7JRs2B3TNZGuZ4TbO9c/8m33Mz/ en3Q== X-Gm-Message-State: AHYfb5j0fVfTKJNRTBTXSAYtOjA2Y12iSjm8ynkxDx2uoCTIjw3kz4Wf KJQRnrwQds3q8A== X-Received: by 10.84.224.193 with SMTP id k1mr8894002pln.234.1502296163804; Wed, 09 Aug 2017 09:29:23 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id 133sm7146186pgc.19.2017.08.09.09.29.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:29:23 -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 13/20] rt2500usb: constify usb_device_id Date: Wed, 9 Aug 2017 21:59:14 +0530 Message-Id: <1502296155-21470-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/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) },