From patchwork Wed Aug 9 16:26:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9890993 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 A265960384 for ; Wed, 9 Aug 2017 16:26:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F6A828A85 for ; Wed, 9 Aug 2017 16:26:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8057228A9B; Wed, 9 Aug 2017 16:26:55 +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 3284D28A85 for ; Wed, 9 Aug 2017 16:26:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753916AbdHIQ0j (ORCPT ); Wed, 9 Aug 2017 12:26:39 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35909 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752858AbdHIQ0i (ORCPT ); Wed, 9 Aug 2017 12:26:38 -0400 Received: by mail-pg0-f66.google.com with SMTP id y129so6264653pgy.3; Wed, 09 Aug 2017 09:26:38 -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=TZFwcoUSVKVE9ggZtBCn4rujSsHmKYVhYFkwmUx+J8E=; b=L6J3shbafB6P3KP193Hy/YctGUVMrTy/Q0iaFDbPxWaFza02KfZXcoD69QB06bsmZK n0rW8/3uQIuYYnbjR7zX7sPVrobgbT+fT/4ewOtR+wPRAv4StKwpG8H4LaCCSXnOD+8W H12REp6bI1j01HrhWlEY4NoJbe9p4ZVT9aWnivJ+mieYE7ekR0HJGCSOpTmV4dPEf3yX iSRWEjF45L2f1mFFEmtY4cq7eCuDtrBW9Kr2CliTOUxufOZSPoPr7aifo5ph2fMRyTyX 7Um7Hl0JeyICl1Dk2xkLiy06WuPUKkEVjvx+h9cnUClvKqU1GbbrK0NKqMXc4YynXQ3a GK/w== 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=TZFwcoUSVKVE9ggZtBCn4rujSsHmKYVhYFkwmUx+J8E=; b=bAB6GIB4pkGmb+/RNbAMoZwAYrwU5hKw5j1M5V9p6j7YpWBxznxjA0FnWGjs4rW8yu wsp7LiUD/p2/7ih2DMbV5jjlqkbN1rokt8LS+LkP85QI9McuLPLesWE5aJo58eK0ouVA VJMIScnfHy9Jc7M4sBfbQZYy4OI9hvQCjPy7/+h9/GGIo05l8FQIUUzB9GRpRp0JJmBt Vbcf9tRIfoqYcjpuBU5QQrUQ2R5zPN1tWNEssF99UmplQIg9apeLzgChKU6OV7BPc07T QzIX5uRFlFmh8DOpXXzBBuzzQhYoNTlFirBpsdOGbAr8OFj1ga1FbLBPpwcoELP6S2h9 qNdQ== X-Gm-Message-State: AHYfb5ga2yFjwZLGZSRwVCGAY3s0ZhZEgJgr1KwBdKTlei+sn6+77pEa uAe2Rv6mp6KAqw== X-Received: by 10.99.65.196 with SMTP id o187mr8214018pga.193.1502295997831; Wed, 09 Aug 2017 09:26:37 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id 188sm3202125pfe.171.2017.08.09.09.26.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:26:37 -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 v2 07/20] orinoco: constify usb_device_id Date: Wed, 9 Aug 2017 21:56:28 +0530 Message-Id: <1502295988-21144-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/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)},