From patchwork Wed Aug 9 16:28:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891011 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 59EC960384 for ; Wed, 9 Aug 2017 16:28:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48E6E27FAC for ; Wed, 9 Aug 2017 16:28:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C5F628138; Wed, 9 Aug 2017 16:28:55 +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 E7B9C27FAC for ; Wed, 9 Aug 2017 16:28:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752964AbdHIQ2h (ORCPT ); Wed, 9 Aug 2017 12:28:37 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37332 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752465AbdHIQ2e (ORCPT ); Wed, 9 Aug 2017 12:28:34 -0400 Received: by mail-pg0-f65.google.com with SMTP id 83so6264844pgb.4; 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=M8wm949UAg08HFfoc8fb07q05sCqQfne1Ax9joVoNdd4f98kyqi8yMQ340pMP4k6Ws WnnlXOxmYcRkRyHAEmakdt06e0IVp5FBWMux17Dyiy3WKRT4cBKR5cXPRXAsMJVERmru 5lVVm0nRUeP7/FtQwpm3QE9tTOCo62F9Z2gJQiG1qDFkGOQJpXf/8kjcup62rILgiKkp g9D9oO35TdRoUbX810YXryEwW95p3nXGvauOSc5lx5bMviVPFsxmuK8jExIQSYieRCIv pXFttcIqOmKM1tmn/Clj1H0KQjLwaVPPK+mQZdWLgxbV3HaWvEEuLzlAOAawPdT7U5nz KyqQ== X-Gm-Message-State: AHYfb5hYsuusdZhdeayDoCHKXG4S7JMGr0ozWnSKtRZKq5/59UGLuqEd De3Jv+kL3gzw0w== 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 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 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 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/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) },