From patchwork Tue Aug 8 16:02:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888699 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 E0D5D601EB for ; Tue, 8 Aug 2017 16:08:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3C2E287D2 for ; Tue, 8 Aug 2017 16:08:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8CBF288AA; Tue, 8 Aug 2017 16:08:29 +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 76F2A287D2 for ; Tue, 8 Aug 2017 16:08:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752689AbdHHQCb (ORCPT ); Tue, 8 Aug 2017 12:02:31 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36539 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752734AbdHHQCZ (ORCPT ); Tue, 8 Aug 2017 12:02:25 -0400 Received: by mail-pf0-f193.google.com with SMTP id t83so3468420pfj.3; Tue, 08 Aug 2017 09:02:25 -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=aD5/QcQ3WQpDx7t9LC85ZhcDdn1WEFOYOZQWFqfjWjk=; b=a5yR7hV5h+yGsh+e5iNNkxgbnZ0t5qpUcQU0YATVdCm9s9d4MN9uzbfhi6y96DhjDl GBH0v1jWeSo99pXJpb2OJsIN28CO8TC10qL3ft7/xNvQFlJ/b/zpaspN+YXExk6NnsqD 9Y7oy+9VYjdMXjrcCsTLHBUNhFo/NDnwFIfo2DAcfrw6SQSPSUAeXZvEUTDEe4EohTAe lMNWIVdhqEXc1Uhk3iI+0+yZmDM+e3QMGZ+BxHI4E76c+HVP1MpocOXLdbQNs28vczVc sH9e74F2NogqBLjkw9RA+8u3whQYBc+tqFl5ZnNEnFGlNfEfnFGEtLhZ1vASTFwglQR3 Wc6Q== 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=aD5/QcQ3WQpDx7t9LC85ZhcDdn1WEFOYOZQWFqfjWjk=; b=tGJXNuGz5APXR33i2U85wg0lAiuhWkzMZAm+6eF9ibYRnh27+qodb4Em/1S/rM9uMH tG6Gmn2zVi/kc4V5x3/YUBfzo3DqMT6XB4oowjMueKP7V6yxr6kUM/Paq/H8MrZXD/dq drJzindtuqP1y7eIpku/vUiPNiX1qkXoBLcuc0D9CQGTR0DjYpgNN9x77TvMc7Ncfkhm wXKgjlEV0I0LKWEYwBX/epP/njRhYUFWFrv9nrYnGfpGkBBbL40WYFeJ9pa05dPoSkcI gZc4yKquhggJDjA6R7OmfCsUpWyGQGrFxLujLVNh3DsyT1wqdc+g/WuZmEjp6Ks0c62/ JIsQ== X-Gm-Message-State: AHYfb5i/3VFSFQBwxSPVGQc+hf09VwnNHq9bBN6sx1pBM9wQ9DgyX6jM eDEk5K3dSDd1HnXXcUE= X-Received: by 10.84.238.1 with SMTP id u1mr5431782plk.187.1502208145035; Tue, 08 Aug 2017 09:02:25 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id g1sm3565698pfk.92.2017.08.08.09.02.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:02:24 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, chunkeey@googlemail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 23/35] wireless: intersil: p54: constify usb_device_id Date: Tue, 8 Aug 2017 21:32:16 +0530 Message-Id: <1502208136-12015-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/p54/p54usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intersil/p54/p54usb.c b/drivers/net/wireless/intersil/p54/p54usb.c index 043bd1c..b0b86f7 100644 --- a/drivers/net/wireless/intersil/p54/p54usb.c +++ b/drivers/net/wireless/intersil/p54/p54usb.c @@ -41,7 +41,7 @@ MODULE_FIRMWARE("isl3887usb"); * whenever you add a new device. */ -static struct usb_device_id p54u_table[] = { +static const struct usb_device_id p54u_table[] = { /* Version 1 devices (pci chip + net2280) */ {USB_DEVICE(0x0411, 0x0050)}, /* Buffalo WLI2-USB2-G54 */ {USB_DEVICE(0x045e, 0x00c2)}, /* Microsoft MN-710 */