From patchwork Wed Aug 9 16:31:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891047 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 20DF960384 for ; Wed, 9 Aug 2017 16:32:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1127B28138 for ; Wed, 9 Aug 2017 16:32:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05D78289CD; Wed, 9 Aug 2017 16:32: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 C3894289C6 for ; Wed, 9 Aug 2017 16:32:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753967AbdHIQb4 (ORCPT ); Wed, 9 Aug 2017 12:31:56 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35987 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752673AbdHIQbx (ORCPT ); Wed, 9 Aug 2017 12:31:53 -0400 Received: by mail-pf0-f195.google.com with SMTP id t83so6600636pfj.3; Wed, 09 Aug 2017 09:31:53 -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=VEJavBap1mO0jJgfUs87nv+Ay3ZDGtUa5M4aBc/efLo=; b=dYmPWgwh9kqbPnEXFBJ8AT09lQBgUWtUoc4PzYwV7TXTcIuzOC7IOinv7HSCw0D706 7JlkYKbZAfqnrLiHrp2Ct/o2umvj/MaadKITOvB3u9boRGOMG2r+3TGS4pVW9B+TTb/3 EJW/5poYIon7XcxD9GW0Po9UdxirlX2wwGhQXFlKESJB9a+c4dc5nDhlnq0tVFWz/25o fFNHsFezD8xKh6/Nq5WBZ5xr/r9iMq8MZ0+QmvNG5nT/7CAz8OCTHyjpQRFrw5niUY6E SR+EgoHwT0h8gjd6xBorGDx5R4ZET371vZYUwkJtGgCHfrOJ14hTLv+Drho0Tto9EYeh U5XA== 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=VEJavBap1mO0jJgfUs87nv+Ay3ZDGtUa5M4aBc/efLo=; b=NKU3kehFgWlNcH0I4H/4OLm7v0Yl2GJ7BAW8UYj6AF540jPK4O48pEk4b2UAHndU+y LGmj2RUgl0mLatgYVlws5v+qgNpJ9dEKkQKz/etIpxXgS++1OKakLQ6+YbqUQv8EdCV0 Im9MM2Tvf2Ln4LqvmWu/D9GSJ+U9xEOPRVp64KOa9s9hFlbrN5Lzw954f5ziJOaQnW3u o8mwjcQccPLNW+Xoo3ETRZUvC95vdNPV1IHXQhBvVnGJTonP9nuVZlVpFD4n5lWOogN0 u9y/VzY1XFhyhFGzIo5PLK+7ESgnteigF6VDZPRmz4jPkl9jxM5s3pZND1hz2L7nnmfj /a6g== X-Gm-Message-State: AHYfb5jfT7QsA02OF6Nn7MWm0bfteq9Sk5i+2lKEfNbeECAiEs2JJpH2 IXMeJC+SIh99iKkhLuE= X-Received: by 10.99.3.81 with SMTP id 78mr8295761pgd.239.1502296313022; Wed, 09 Aug 2017 09:31:53 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id c12sm8376053pfe.154.2017.08.09.09.31.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:31:52 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, dsd@gentoo.org, kune@deine-taler.de Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 20/20] zd1211rw: constify usb_device_id Date: Wed, 9 Aug 2017 22:01:42 +0530 Message-Id: <1502296302-21828-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/zd1211rw/zd_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/zydas/zd1211rw/zd_usb.c b/drivers/net/wireless/zydas/zd1211rw/zd_usb.c index 01ca1d5..c30bf11 100644 --- a/drivers/net/wireless/zydas/zd1211rw/zd_usb.c +++ b/drivers/net/wireless/zydas/zd1211rw/zd_usb.c @@ -35,7 +35,7 @@ #include "zd_mac.h" #include "zd_usb.h" -static struct usb_device_id usb_ids[] = { +static const struct usb_device_id usb_ids[] = { /* ZD1211 */ { USB_DEVICE(0x0105, 0x145f), .driver_info = DEVICE_ZD1211 }, { USB_DEVICE(0x0586, 0x3401), .driver_info = DEVICE_ZD1211 },