Message ID | 1502296104-21360-1-git-send-email-arvind.yadav.cs@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org> 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 0FFC360384 for <patchwork-linux-mediatek@patchwork.kernel.org>; Wed, 9 Aug 2017 16:29:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F284727FAC for <patchwork-linux-mediatek@patchwork.kernel.org>; Wed, 9 Aug 2017 16:29:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E72B12842E; Wed, 9 Aug 2017 16:29:15 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 806F127FAC for <patchwork-linux-mediatek@patchwork.kernel.org>; Wed, 9 Aug 2017 16:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=UdHzQnjngRrFWRLhyseREh/fbzUb1xAXulKMeE5JC70=; b=i0s WeXBK05alVr52PsqkTAtNo2XMQHC7dBaCsB30gkSW+kL7/Wgir3/8D8mIUmkHl2W3I+zHYE5363LY 9PlmUt9mpmUHOHJE/vLqIuCOP86BKfSBVkjpmLcVa04shwjrMQjO7lMw9jzwk14mTE8sQm6c1Gpwu T/9J74c7uhC1P+K0ohRQy3mPCXJsxEpgYdt79HJaaEtirdjz3/SFB9UC0MuhZavyj963khWtcq2kY 04XO2a6yaNZWRmiuWVvT6kpxlTNozsWVrSiVQ644+Hjjc8/m1d2HHF44ZOHtWqOfS1+u2lDhH6Lo3 zwtj9XatTn2lN5gkyUwZBaDK5x0XEKg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dfTr7-0004pB-TQ; Wed, 09 Aug 2017 16:29:13 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dfTqp-0004Q4-OI; Wed, 09 Aug 2017 16:28:57 +0000 Received: by mail-pg0-x243.google.com with SMTP id l64so6278458pge.2; Wed, 09 Aug 2017 09:28:34 -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=D4LGF0TC+SfwObA3HDA1L61v/A/fRoIJSGN3qKvlMWE=; b=dNI/Xj+D88ATOqQ4YYEJNjM/YNpVjrDcvTYKwFlKkGiyfcqUWSwXssrixsXg5m0/b3 cGL+M9F7Dp+3UOcvbVDrQl/mnf2kckR1nMhWe/Kl0NvFvhcMvtk4jw08mbpaupnSCjjP qHif/jIEtPpAQzc+rp0sdTtaSd5FV++X3gewtH97Ww+cXUaULinLF0IE4bMhVNQGGotV 2zEv+u7A8l73J2/5Ep0zi1T4A4cNcjhW1wzdE8bGRbtL+9C14XTcPenST0+XL6s+YAj+ qPBhTnowNpMVe8IKmWOdAnkVljBsvKKV0Ib8ca6/3a//oCjlY7ZG6K3c0//s03APYmDC MS5g== 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=D4LGF0TC+SfwObA3HDA1L61v/A/fRoIJSGN3qKvlMWE=; b=PEvMkoXHh48t6zB9urRdh1an+cYtClIe90kdrZKzMbS3y60E+5pSV9ySrM/kiBlMlt 2S9U3n3oNOmKqG43lJCKPsid3ZexiEL8LefNiDTfd80+E1wIOavL8Yo8CJXs0grPFjAi wbDtyDTb9vmkNDCMRQc7uvDyyPkFV+3CQ9hlgIPqabRCl9ykXzHbRl+3t0f+P/xKa4oc 9+b2iS2brrKAy+EWZX/t/N+yMVFSlK9JOc0dBQabGgF/3toAL6juJ0i3eQVyEh8iO18P GmWoBxrA/xablEPJjzDR0dVdivbBhG5IOtTpuf/MkqPjWjsHhQ+37gx4uhp+dq3gJy7t TLzw== X-Gm-Message-State: AHYfb5hPG8/WXt0kmJtssxoglmF4HmdHFUv76szx7wA6BjdLTCgr0NNA XNl15wUQ0QYkkw== X-Received: by 10.84.143.129 with SMTP id 1mr9982698plz.344.1502296114352; Wed, 09 Aug 2017 09:28:34 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id x29sm13041250pff.2.2017.08.09.09.28.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:28:33 -0700 (PDT) From: Arvind Yadav <arvind.yadav.cs@gmail.com> To: kvalo@codeaurora.org, kubakici@wp.pl, matthias.bgg@gmail.com Subject: [PATCH v2 12/20] mt7601u: constify usb_device_id Date: Wed, 9 Aug 2017 21:58:24 +0530 Message-Id: <1502296104-21360-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170809_092855_876251_990E6AA4 X-CRM114-Status: UNSURE ( 8.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe> Cc: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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) },
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by <linux/usb.h> work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> --- changes in v2: Re-submitting wireless separately. drivers/net/wireless/mediatek/mt7601u/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)