From patchwork Wed Aug 9 16:31: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: 9891049 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 06A5160384 for ; Wed, 9 Aug 2017 16:32:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB682289B2 for ; Wed, 9 Aug 2017 16:32:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E088728AA9; Wed, 9 Aug 2017 16:32:19 +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 9C017289B2 for ; Wed, 9 Aug 2017 16:32:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753854AbdHIQbf (ORCPT ); Wed, 9 Aug 2017 12:31:35 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:37526 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752726AbdHIQbd (ORCPT ); Wed, 9 Aug 2017 12:31:33 -0400 Received: by mail-pf0-f195.google.com with SMTP id p13so6591306pfd.4; Wed, 09 Aug 2017 09:31:32 -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=xFFFucHvxQQ5b7OjNBtKjE+pgUylyjK1LVBQNpGVSig=; b=dsSAcigPR9o6vwdhGCefTomUdgfTE8dlujZE5KHbIxMI6HCuEVLRMTQ8/cXPAOrqi8 UKnRTmqst3VJ2Tks8HMxBuqBDcwZyMcang0mLbg1MzsZRiJpziqNbAYfVymp69rbZWH8 rWpbboOYAjTRiDzKGXLNWWILPVG8XUs0bNswZ+kHLrsxRv4Vuhxb31SaMw4ZiccSjYyF MSOWhW/9jPtd5RFm4zZG3ITzG3XIixsOmZIWPv/7axVm9EtRbwjPToT4eYojIsSwSQyy JDCv/aqn/2ugb1ox7kQRBM2QKH2/kaSmlQPUCH+mipbQYI6tl54ev03STKaDjnGviAWB 75zA== 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=xFFFucHvxQQ5b7OjNBtKjE+pgUylyjK1LVBQNpGVSig=; b=Jy2mj95E0X29+H0fxHXO7r/Q5DU/drec+3yrr2qEJIZf1IC79LccIx3GOtCqMGXNre JzBeMvqihguPNEs7Fi4swyB3tvC8MngGkuuVxTF47nX/GCNpoBzAUpUbH2EmB7HN197v RTUnqtzUOx8w528yOMl5dV1LBlCcvTGHs3XVDTdgq7ZLHzExLchRJ1555afZKR/bGYem sEc5o5+AV+y5tpDPT7W2lX637of8OQwB51qxcw/ug7j/l8k2cEcVUFO6PyX9Te2rFL2l 31VksNLrGICJjjDJxKWXtIj4n/QdRztX36c4SkY13yyY3N3CJxIiQNfkDyNC0Pv02umP vBIg== X-Gm-Message-State: AHYfb5iqJg6Hg4Usevj/oH0IN3re9N30pP5DW1BnYwGRieJ/so2Fxm3T LhUycC8vQXDYFAhE5HM= X-Received: by 10.98.153.153 with SMTP id t25mr8786827pfk.224.1502296292578; Wed, 09 Aug 2017 09:31:32 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id p67sm7343623pga.79.2017.08.09.09.31.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:31:31 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 19/20] zd1201: constify usb_device_id Date: Wed, 9 Aug 2017 22:01:24 +0530 Message-Id: <1502296284-21779-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/zydas/zd1201.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/zydas/zd1201.c b/drivers/net/wireless/zydas/zd1201.c index 7f586d7..581e857 100644 --- a/drivers/net/wireless/zydas/zd1201.c +++ b/drivers/net/wireless/zydas/zd1201.c @@ -25,7 +25,7 @@ #include #include "zd1201.h" -static struct usb_device_id zd1201_table[] = { +static const struct usb_device_id zd1201_table[] = { {USB_DEVICE(0x0586, 0x3400)}, /* Peabird Wireless USB Adapter */ {USB_DEVICE(0x0ace, 0x1201)}, /* ZyDAS ZD1201 Wireless USB Adapter */ {USB_DEVICE(0x050d, 0x6051)}, /* Belkin F5D6051 usb adapter */