From patchwork Tue Aug 8 16:03:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888655 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 B3E33601EB for ; Tue, 8 Aug 2017 16:04:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A71EF28884 for ; Tue, 8 Aug 2017 16:04:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C1632889D; Tue, 8 Aug 2017 16:04:18 +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 4727B28884 for ; Tue, 8 Aug 2017 16:04:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752684AbdHHQD6 (ORCPT ); Tue, 8 Aug 2017 12:03:58 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34653 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752569AbdHHQDz (ORCPT ); Tue, 8 Aug 2017 12:03:55 -0400 Received: by mail-pg0-f66.google.com with SMTP id y192so3405881pgd.1; Tue, 08 Aug 2017 09:03:55 -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=5xlvOikn/a7gx4Yw/2sEZCX0BFqSNLvgai/1LIIW2Ro=; b=qZxkYqSgAVGJkCb6Z6oEWgVbnf0Da0phiFs8iJBp+YkgrUpAWZ4xhs+GiZ56WHHhqF cQ1M0FxgKKUKFva2xqRfuWuuygkvW2c1VC28O7ogJGhT3Gd6wrI+CrD7cqoCELKQFEXn 81jXRhdZwQIhaQqJ+KwtK+k1hMHKnCH/hYXIKX2JEEvmH1KTGIUwqEsMUhgkMbb0gadh iZPm/ksVMJKf3ExYUUjnWtdK+m1RA+VoPlfxdTK2F1b2vr/oELJj4vZrpltsuOzPmBc7 8GfllnSd8wVNJzTCPBv51HRIOSrFp2WBJCzyEjDN+du0mwqjuhatYr7bkkCwRRZ/+tiq ltqg== 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=5xlvOikn/a7gx4Yw/2sEZCX0BFqSNLvgai/1LIIW2Ro=; b=T0GErJQxRSjjoMfYixUvjwL9lGXO39uMH5sBmVzVOxpAPv45TKMWJhkZUAQjA6b9lD 9pdsKgAyuV4S7D9SKZD/1FHa08dX4HbYdEaKLgktQPSIkPCTmrzNJ0h7Ch7LzwkQApTx nQJiHZ2ZVp8CdYwLWDE8RXsZpc2gp7571dxPerQB1SUTPrsl88581ZMDUHJzfL5B6F1Q UzQq8c8QeJVgEA4yeq1rWpGm++zyMIltA0Q/u/zPGyCxgisBpHErQ7TWdkN6NSZCHPZv F1DyTSrbTFSgYlgfVctdMoIQM2y6Bx+DP34QUOXilWfdj/mr3kPAnoB2oP0rmJPWItT9 oMPw== X-Gm-Message-State: AHYfb5h1x0p9FILwLdAvbwiJJ9n/0pqK+ZSyqKhpWhdjPeoUr01obikX 5iVsLhDI5gacaw== X-Received: by 10.99.47.199 with SMTP id v190mr4594679pgv.303.1502208234961; Tue, 08 Aug 2017 09:03:54 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id s73sm2853222pgc.73.2017.08.08.09.03.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:03:54 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, kubakici@wp.pl, matthias.bgg@gmail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 27/35] wireless: mediatek: mt7601u: constify usb_device_id Date: Tue, 8 Aug 2017 21:33:40 +0530 Message-Id: <1502208220-12224-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/mediatek/mt7601u/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt7601u/usb.c b/drivers/net/wireless/mediatek/mt7601u/usb.c index 416c604..b9e4f67 100644 --- a/drivers/net/wireless/mediatek/mt7601u/usb.c +++ b/drivers/net/wireless/mediatek/mt7601u/usb.c @@ -19,7 +19,7 @@ #include "usb.h" #include "trace.h" -static struct usb_device_id mt7601u_device_table[] = { +static const struct usb_device_id mt7601u_device_table[] = { { USB_DEVICE(0x0b05, 0x17d3) }, { USB_DEVICE(0x0e8d, 0x760a) }, { USB_DEVICE(0x0e8d, 0x760b) },