From patchwork Tue Aug 8 16:01:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888701 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 AEE7D601EB for ; Tue, 8 Aug 2017 16:08:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1BD7287D2 for ; Tue, 8 Aug 2017 16:08:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96CE0288AA; Tue, 8 Aug 2017 16:08:47 +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 7A4B8287D2 for ; Tue, 8 Aug 2017 16:08:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752770AbdHHQCG (ORCPT ); Tue, 8 Aug 2017 12:02:06 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33521 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752768AbdHHQCD (ORCPT ); Tue, 8 Aug 2017 12:02:03 -0400 Received: by mail-pf0-f193.google.com with SMTP id c65so3478234pfl.0; Tue, 08 Aug 2017 09:02:03 -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=PfA/bBD01Nj26Fyq8WoV5H/dPBcS0E2ooTnRjbuJ2Bs=; b=IDxb3IsI+JiQJFLeram0NpO7bcsmuSTtqq0GqebPVL2VEDFvCzvRr/oF3pes6BFYJt C6PfkPwSB/9f334bDtkVTpdcCfly3urHwfye6YTuJ2Z0OZO0wcMxzQS3ST90ixGKEBCl xkDZCa27lMSeE4kqZamtJRxCIzi1mRC56YgxGO3/8OhGtB6kJHX86PeQV2febLEqMcso jYWt/Ig/y8BZNIfiX55AkP5BGk36Zyk4hJlCKDQz7CSX1ySFVaXBcyS6+E2QtuyQ0hiu CWXXqDMUNclCe5RqscN6+1/lCbLs/APfAHcNjdmX1cj2XWdVLbIOR1ZK8fQMNRil9vyZ ui5w== 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=PfA/bBD01Nj26Fyq8WoV5H/dPBcS0E2ooTnRjbuJ2Bs=; b=LlLFRFF1io4YIZiM5TkextaGoEmQfi5Mu/acQPd5EZbg3CE/vgEXrLf/3UXbVLo9S9 c5Af980msYXAT692PoDtG8KXp/mNkqQSkLxB/XH3FM+POQzV6eBPk2Y5nEA0FnxfbFHU cSjE0smZi7LQNaFPDEseYGUsgZJWMW38UvAWJVLnN531yYJJFnMwlDiUETDdLFo0H+Cp O+52C/p1+6gxY1TdQQHENyTx88ZdYZcsx3RZQ30Oh9vVxF3lyohQdXwe+byprwI6cbjM MYnfTiT/6d8xDhp9VkLFXvpHndKtLAeA/ZjZza/mr2pCpzZcTE8A9rPsGNG5CJJBii2e Ow8g== X-Gm-Message-State: AHYfb5gZoczaMFKZB/nL6RRCBq2u4miv8oJ+o3uvgcF1nxxrTQC/uHxA ksVxnvRNWBA+JA== X-Received: by 10.98.63.10 with SMTP id m10mr5065102pfa.232.1502208123224; Tue, 08 Aug 2017 09:02:03 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id l66sm4228416pfb.107.2017.08.08.09.01.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:02:01 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, elena.reshetova@intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 22/35] wireless: intersil: orinoco: constify usb_device_id Date: Tue, 8 Aug 2017 21:31:53 +0530 Message-Id: <1502208113-11966-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/intersil/orinoco/orinoco_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intersil/orinoco/orinoco_usb.c b/drivers/net/wireless/intersil/orinoco/orinoco_usb.c index c84fd84..56f6e3b 100644 --- a/drivers/net/wireless/intersil/orinoco/orinoco_usb.c +++ b/drivers/net/wireless/intersil/orinoco/orinoco_usb.c @@ -210,7 +210,7 @@ struct ezusb_packet { } __packed; /* Table of devices that work or may work with this driver */ -static struct usb_device_id ezusb_table[] = { +static const struct usb_device_id ezusb_table[] = { {USB_DEVICE(USB_COMPAQ_VENDOR_ID, USB_COMPAQ_WL215_ID)}, {USB_DEVICE(USB_COMPAQ_VENDOR_ID, USB_HP_WL215_ID)}, {USB_DEVICE(USB_COMPAQ_VENDOR_ID, USB_COMPAQ_W200_ID)},