From patchwork Tue Aug 8 16:03:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888659 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 12472601EB for ; Tue, 8 Aug 2017 16:04:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 053FE288AA for ; Tue, 8 Aug 2017 16:04:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE37628903; Tue, 8 Aug 2017 16:04:26 +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 960FB288AA for ; Tue, 8 Aug 2017 16:04:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752894AbdHHQDd (ORCPT ); Tue, 8 Aug 2017 12:03:33 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35865 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752222AbdHHQDa (ORCPT ); Tue, 8 Aug 2017 12:03:30 -0400 Received: by mail-pf0-f193.google.com with SMTP id t83so3471122pfj.3; Tue, 08 Aug 2017 09:03:29 -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=n8pM1HwcQ6YAa/iSlEvz1Q1ugUgTgRPiDhaksiuciTc=; b=AOBVP1d7Atv5ShlwBJTmoIcAnTtnM/+A/1ABiehpeXx/UF1Ohh/sVeRCM2qniikQo+ BsFBKIweV3rjs50q2njvlVY3T3vKNiwiIuQgEYacxd921WAmgi0rWhqKSdQqRDyAqZ7f v1h0prhd0B/808hEDIb2d/AOmgDc51qbMkV+fjemZiP8dyDY34RpeJHRLWUxqJGkgyUa 5zHsuiRuNcPNzcaWMeFZQJUF/kyCOyNEBuQiUKMUSJE73Q6I//FoN4/StuRZz0eCwbMR SF7oRas9QLRQUlGPRXu74l294q5u/3PMBlPUDfHqkp2t0vXFGV89gqgxWEd8sOzjurW8 XOBQ== 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=n8pM1HwcQ6YAa/iSlEvz1Q1ugUgTgRPiDhaksiuciTc=; b=fhpOubhLPnrnjAnX8ElqR7lRzhZu/QP2ik8VrfBbzVHbJjBH5EqVo/WbSaL+B+Jc0E qfqQOqHkM+4ppr5/1agP6FwzdQEN+YRuExrAJcE7erzcOLM4vkKo4fpwMhEnzlb/sEdF BeihjxXkbXtbaG1TqXsp4Aw62rv7N82oxbc7eldgRYMVDcVyone5iJVRdQ7UL17iEtya hSLnYxq46ie8gmS4AL1+s9RPvyC/2ZvXvfVH9u0xAPv9XYQm/ObNoJdhNxlvQqRFYRso gUgDPukUPBRTSO92hQcYwfUW3xPJsBUCsgYA8eDSP14x8GPedJp9HZAo9MXiVzG80MJL /uww== X-Gm-Message-State: AHYfb5i0j1EXHIDaBynk2ygCLvtUZWR6BHEn//jj1PI+YaGExo0ljJ7z 6EyxbFJrSQncCg== X-Received: by 10.84.217.74 with SMTP id e10mr5306044plj.410.1502208209353; Tue, 08 Aug 2017 09:03:29 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id 10sm4121696pfo.134.2017.08.08.09.03.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:03:28 -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 26/35] wireless: marvell: mwifiex: constify usb_device_id Date: Tue, 8 Aug 2017 21:33:19 +0530 Message-Id: <1502208199-12171-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/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,