From patchwork Wed Aug 9 16:27:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891007 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 95F3A60384 for ; Wed, 9 Aug 2017 16:28:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85AD228A85 for ; Wed, 9 Aug 2017 16:28:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A7FC28A9F; Wed, 9 Aug 2017 16:28:24 +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 3B7FC28A85 for ; Wed, 9 Aug 2017 16:28:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754050AbdHIQ2N (ORCPT ); Wed, 9 Aug 2017 12:28:13 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33380 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752465AbdHIQ2K (ORCPT ); Wed, 9 Aug 2017 12:28:10 -0400 Received: by mail-pf0-f193.google.com with SMTP id c65so6606309pfl.0; Wed, 09 Aug 2017 09:28:10 -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=lO1u6NcO/4JauwmAI5pmvGWmg9jUvCCqM1Cqjx1K0+U=; b=T0AwCsFIWK+xNnxl0yPVH8WG/12wIU5fnZb5uAnbt1t57I996uZcOe4ipiQNy9V1+R waBu8KjUs0DFIXZ7nuoFnwOAu3pkHi144tVhBHIHGL9oSY1dLA0Mwk3Rwz97CMRrp++2 Lw65Yd8RIoiROOHJNxncDxgyQjG8i7yQqGWm+RZQz2ga5iRGvOG10eZLrPXDrE/DJpZH Si0SV4jL/luUN/qBq+hOIkXe7FKtdZ8Lv1d0xZ2q66O2RiYNijFP6pI6sG9CzdqyG+HD nLcMrlcIuGl0SYFQXzyrFA5n/CMsGtku7RjTYMRyur/6FmOh5fd1KPGKlG/wnvMw4Uhw D+EA== 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=lO1u6NcO/4JauwmAI5pmvGWmg9jUvCCqM1Cqjx1K0+U=; b=VOukilmQWbWpVYpBjoum2kMNZe0m3/5piZJkDgQTxlHCRkaDy0rl11S/WyLNtwTBws dGV/E0BZ4F1Sc+6oZEPpKQ3mt/DG841SDTn63csJTXhhdR4aqlpguj0bKEX4J7aqTFkr d/B8AdoPsvWwmgxlSfhbi0jD3KCAHyPFKDJtgEzhSDcG+odZBDb5hmkTOYW2D9dz3boh 5xIP/TxkrJgpwzhh+1w5+3p+w1q8RDxPxlzK1mNLtXrgPig6ai/NogMti5pAv4BAxp3x oyUpmH+AEdO5tAl1s11Vz+ug3Sb4xgSmf8sFKRW+zN+XcEUDjEPlKhr4ECt54R2oPn2z TvQw== X-Gm-Message-State: AHYfb5j8Bta97/gKQBjUk7StWPn4DUK3jIUzt367sFP4kKRV2D8Q5hkg Fw6Y5gPNQN8R2g== X-Received: by 10.99.100.134 with SMTP id y128mr8205999pgb.365.1502296090327; Wed, 09 Aug 2017 09:28:10 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id m125sm7714811pfm.157.2017.08.09.09.28.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:28:09 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, amitkarwar@gmail.com, nishants@marvell.com, gbhat@marvell.com, huxm@marvell.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 11/20] mwifiex: constify usb_device_id Date: Wed, 9 Aug 2017 21:57:59 +0530 Message-Id: <1502296079-21307-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/marvell/mwifiex/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/mwifiex/usb.c b/drivers/net/wireless/marvell/mwifiex/usb.c index cb1753e..821a77b 100644 --- a/drivers/net/wireless/marvell/mwifiex/usb.c +++ b/drivers/net/wireless/marvell/mwifiex/usb.c @@ -24,7 +24,7 @@ static struct mwifiex_if_ops usb_ops; -static struct usb_device_id mwifiex_usb_table[] = { +static const struct usb_device_id mwifiex_usb_table[] = { /* 8766 */ {USB_DEVICE(USB8XXX_VID, USB8766_PID_1)}, {USB_DEVICE_AND_INTERFACE_INFO(USB8XXX_VID, USB8766_PID_2,