From patchwork Tue Aug 8 16:06:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888687 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 87657601EB for ; Tue, 8 Aug 2017 16:07:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A6A1287D2 for ; Tue, 8 Aug 2017 16:07:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F380288AA; Tue, 8 Aug 2017 16:07:14 +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 34D0F287D2 for ; Tue, 8 Aug 2017 16:07:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752862AbdHHQGk (ORCPT ); Tue, 8 Aug 2017 12:06:40 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34563 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752700AbdHHQGh (ORCPT ); Tue, 8 Aug 2017 12:06:37 -0400 Received: by mail-pf0-f193.google.com with SMTP id t86so3486628pfe.1; Tue, 08 Aug 2017 09:06:37 -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=zv2pMF+8V32cAps+YHQE76VPdTJZZXteswRifjAqyY4=; b=nxn3oKIkATYDKwkv+CR88oJ5q8XgkUNWQXx+g5J5nI6r30gY+i/8ox4wSR21Wfrjsu zo7bMdE5Bli3c+ZHPw8hd/fvV6DxsamMNZa/2AFm2hWrO8HNfpSc7LohPETBULtaBXE1 4cdjOaJ1g2QgeOUL6E3TFHOC3mKweMbDsFUSGSZ0gP0PrHu+Wp7BDa/fkHCyiCzxL7m1 /N7gBcXFYV3EwidWRM4glZXNHHO3ON4wXQpdWb4GYI9WsLZdkNUaYBmpyU76RBG4Caao qwqwYAI5VBDBjqlmAOUeRqO1IZUSXpxOEFJHj9Aq49QEN1hTzr1ZkR06GKqqv8veVuT1 +WfQ== 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=zv2pMF+8V32cAps+YHQE76VPdTJZZXteswRifjAqyY4=; b=d5WgoQsVR96arYMVAlK/ZEoP/hci5beIUj9syE5+3oQmRmCNEiuoXLE00+yB9I5Mok 6cwf53HkNTWey58wUaQ2r//+Eq5OGbEaz1bICOjw3sA6Q3QrV1L+ehRDsg5p/WUH115i SKEke5CfVvTxEc+N7FOScSBH+3eZqMxRetUX9fh/YoiBxxxf0HnjwDknDA0Mg4rhJtOB BwEXzH6kYwmHEtYDRtYqvbKp/I9Qs/g+Un2n8Wt/qeX0l2rsDVd3DE0OZezNHooF0cxc o0lxYcEN0z7iqPTM1y2Sf1358E4dR8rQ3/L49+U8Dg3/w+7XjrlSmDuUjn+7Fa5nGT4t dkcw== X-Gm-Message-State: AHYfb5isjAOzmN6EExII48Gn1f2c0GjitKM1+3V/MM6Wyuw6w4v6kKQF Z6bIarFxfhvjHPY4EZ4= X-Received: by 10.99.127.90 with SMTP id p26mr4503401pgn.377.1502208396724; Tue, 08 Aug 2017 09:06:36 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id h81sm3126570pfj.72.2017.08.08.09.06.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:06:36 -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 34/35] wireless: zydas: zd1201: constify usb_device_id Date: Tue, 8 Aug 2017 21:36:21 +0530 Message-Id: <1502208381-12497-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/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 */