From patchwork Wed Aug 9 16:26:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9890997 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 04A1960384 for ; Wed, 9 Aug 2017 16:27:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E811628A85 for ; Wed, 9 Aug 2017 16:27:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD1CD28A9B; Wed, 9 Aug 2017 16:27:35 +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 A6AF528A85 for ; Wed, 9 Aug 2017 16:27:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752858AbdHIQ1W (ORCPT ); Wed, 9 Aug 2017 12:27:22 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35910 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752319AbdHIQ1U (ORCPT ); Wed, 9 Aug 2017 12:27:20 -0400 Received: by mail-pf0-f193.google.com with SMTP id t83so6590593pfj.3; Wed, 09 Aug 2017 09:27:20 -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=VsbZPvq8gZ5dU9B16mmvknlS/wn7gNLXxr3Avz1WiHM=; b=fdnUCAPbKHbEtbJGpFoXe+Gj027RqdxjE86CBQyBHgV6zTMmn6EuPReN6B+IY31QoP 9zvMlZCkfixn+OOr45CHAlDzhz1EYNOHr3gpBwQjIKIiU/qjXjFzz0afLxTpBlm7dwhN vOIRTi1oSUU6wQidcYkahkuw5eSxOrumtVC8kROotWCIMIa+uS8Cb6p6la2GV7j94wcF kk71iB6nYvo2JEcZmyR4tbxbLmAx62/tQRxuI3j6oViBOtCfcfrAGhilUIEqBv9nq9rv 6XN8xYPeb8Dqbb/ctggS7bFcj/GqBO/YyJuVG10/MQdu0ZVGeIbUKKxhuRWZykUOyO0m EkxQ== 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=VsbZPvq8gZ5dU9B16mmvknlS/wn7gNLXxr3Avz1WiHM=; b=F/d0PQUU7u9U8k8TEKKFPWJCeauTei4Zr1WZUNiSKdbGYyv4yBAbT6zZnAsIqlO8LS ey7W8SBs61iBZidNxHGaR1ihPo64czmzO8sJedgsbhwsMHj3s/LtZAnfoSTxbK3pfuuX +ZLe9OfGCz/YtnohUvOnC8asrLxiJkaFdqifzimO8EKAUPOzBbdClCSw/vvBi+slIYDY 3h9F7WTUTqRoZUvMreY8TX0vskiPXtE8CCa7VZc/VIexTMZKycpw3y/4JDyETQYHuA3N RK7+dwRTZ3l6AM1RfhgpWicdKXJM6/x4VrSlg4G6pUlnhBMjGOyPAiR2qTh82jbQu40P Tmnw== X-Gm-Message-State: AHYfb5i58vZ+JUypByZSkASpGiWv6tD6vGvzFiUQNkqUb6rGmvK74bu7 wIJ0d71/ab/ZL68rnkQ= X-Received: by 10.84.128.9 with SMTP id 9mr9339164pla.98.1502296040077; Wed, 09 Aug 2017 09:27:20 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id l16sm3513542pfk.173.2017.08.09.09.27.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:27:19 -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 v2 08/20] p54: constify usb_device_id Date: Wed, 9 Aug 2017 21:56:43 +0530 Message-Id: <1502296003-21197-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/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 */