From patchwork Wed Aug 9 16:27:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891015 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 9EA3D60384 for ; Wed, 9 Aug 2017 16:29:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E37F27FAC for ; Wed, 9 Aug 2017 16:29:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 830992842E; Wed, 9 Aug 2017 16:29:04 +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 1CFFD27FAC for ; Wed, 9 Aug 2017 16:29:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753681AbdHIQ2F (ORCPT ); Wed, 9 Aug 2017 12:28:05 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36136 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753339AbdHIQ1l (ORCPT ); Wed, 9 Aug 2017 12:27:41 -0400 Received: by mail-pg0-f66.google.com with SMTP id y129so6266702pgy.3; Wed, 09 Aug 2017 09:27:41 -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:in-reply-to:references; bh=TnDINl8iCGzSWyefHS9Db68saNPfQ8wQ65V8zh3waJY=; b=Ci+M43SbG0r50Q7cdBj2vGgFcrmhbDI0RHoeQm896Bp4K/viriZZ3LMibNe0KHVI0r 8Ji0pj7MsYidwXsvciRi2ZrP4HXtuVzcEcrsOL6CgJo3CsE2yOH3td45cCYwAIgR8PjW 1pTRLmBec4fcXCenAxQGsWOGBsnjCWKl5DYpS6WmVUC9h2DaNLo1ocAII+z1OFjwSkbb Wbv5p6cVoMttA4QvqQRvFG8L03yxkfoltWWzLqONKeG6Gu99YP+QQ3kzEVHt9TADQdYs KdhFtOpyVoPW792ZgK7lHluaaQEby68KTfl4nC3cCHDspNPr6aVIqyE5HuYHWmqY2am5 nHjg== 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:in-reply-to :references; bh=TnDINl8iCGzSWyefHS9Db68saNPfQ8wQ65V8zh3waJY=; b=kyK3TLZLypa6YFVTqbWtuEQNC2joUxZxZNFCBcipH+yf1TZBMEpjVjVoUQMoYJwdsn omV1NjCUNZZk3eYHWR5/Qa2BVp3fGPrb7DHT4Mt7xAFv4vpjXUxa6bVghvNImodbavLe rkzSTd3U6nVmxWrKb40bVN+HqthvMni2kb3i7VQoGFGNYQuLHtJAUQxY8Rt7Uc3x2nsk 7V5qmgq38bHf9hSt4v5CzdLLrGLaiGLYsH7NShG705865pLNI6JJovuPvzDUrAcPmfcE WC6pOm07oy/23E+dCp2Q6jAOzjha4U3wkEPN7FX7bnnkbhrJzyDo3o829DX3mjcCrckQ p9mw== X-Gm-Message-State: AHYfb5hHu5qpzrAhJ3K2xi9j2sUtXZZCM1N+/borarhAozBinXru0I5y zMJIvZhKBJFlZg== X-Received: by 10.99.108.200 with SMTP id h191mr8195632pgc.249.1502296060810; Wed, 09 Aug 2017 09:27:40 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id c80sm7107196pfb.141.2017.08.09.09.27.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:27:40 -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 10/20] libertas_tf: constify usb_device_id Date: Wed, 9 Aug 2017 21:57:29 +0530 Message-Id: <1502296049-21253-2-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502296049-21253-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502296049-21253-1-git-send-email-arvind.yadav.cs@gmail.com> 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/libertas_tf/if_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/libertas_tf/if_usb.c b/drivers/net/wireless/marvell/libertas_tf/if_usb.c index e0ade40..e9104ec 100644 --- a/drivers/net/wireless/marvell/libertas_tf/if_usb.c +++ b/drivers/net/wireless/marvell/libertas_tf/if_usb.c @@ -31,7 +31,7 @@ module_param_named(fw_name, lbtf_fw_name, charp, 0644); MODULE_FIRMWARE("lbtf_usb.bin"); -static struct usb_device_id if_usb_table[] = { +static const struct usb_device_id if_usb_table[] = { /* Enter the device signature inside */ { USB_DEVICE(0x1286, 0x2001) }, { USB_DEVICE(0x05a3, 0x8388) },