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: 9888657 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 CF9FF601EB for ; Tue, 8 Aug 2017 16:04:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C138D288AA for ; Tue, 8 Aug 2017 16:04:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5E4D2889C; Tue, 8 Aug 2017 16:04:23 +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 48D6B28884 for ; Tue, 8 Aug 2017 16:04:23 +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=UG3t14ucM9pXF9lFVgY0Gae52JHKmN3tMSH0DFgdYBg=; b=qCC qH7X+7J7AvVqVAe/D7T3QXL8G8cc2FCv/BSygOFtqCweA+8IL+OWgAfWMvjRE5GnchRtsjcfgUnLM g2isGbzaeXt3GXw5wiSP3y9hMR4IjNxznLMDTy8+DX1moWPAoJPETYABq1YKO6Qb53BQZ7l4OBCwR bpXyTsrRRNCc5yCyEhOADiU2LtnyBT5W3aw+SI67axwDLbDIXHyZ6I3fJITni5q1SFBihplzJJyjO YDmfQMIKem77CwxnfLC28cLV7XMW17nTrMpyulJxeWR5iVw3CCOMUyIHdSMrUnBZ5zljp3S3VYU2g qlNTudfqkVHnpRVDgaYjCePliRmCScQ==; 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 1df6zT-0007sM-R1; Tue, 08 Aug 2017 16:04:19 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1df6zP-0007o6-UQ; Tue, 08 Aug 2017 16:04:17 +0000 Received: by mail-pg0-x241.google.com with SMTP id l64so3400982pge.2; 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=d72bKosYQF9MfwnrptutzjCYOwhwrAK9qWmjbGCIlbflKdTjlrNtm95jIXC4xy/bwx FHiOEcVqF0PlAFTWq5aBe5NQB8mfRvMPfiahi5vm5GcO+Y5uhlgMDZ1q5iVHaszfF98X 9xhdgomRjX4V/ld1LcdCgyh+7L8Z8BrnqrjeNEU2fED9+iHikUNXUxZF+QTzVsuwPUoA j79/JdyE2EwmFx0xoapRXVFehodmg451Ofag+wcuN+dVZzXSnd9PELYe/Z+vR1qN73JV hE4Q5Pw7I4N5qL9X3t0AmiFzK9MqX6rZyGWEwnbGDpQOEa6TEgI9Y54kP+plWnCqUMRB iylg== X-Gm-Message-State: AHYfb5jB4QzJdafIIC7uAo5Rt9s2R6A8htwg18Sef4LWucil43EoOC8x qGasSkKG3KNIFg== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170808_090416_066176_6680DBE4 X-CRM114-Status: UNSURE ( 8.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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) },