From patchwork Wed Aug 9 16:24:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9890975 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 6BCE360384 for ; Wed, 9 Aug 2017 16:25:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A73C28A85 for ; Wed, 9 Aug 2017 16:25:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F41928A9A; Wed, 9 Aug 2017 16:25:06 +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 1825628A85 for ; Wed, 9 Aug 2017 16:25:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753938AbdHIQYw (ORCPT ); Wed, 9 Aug 2017 12:24:52 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:37869 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752855AbdHIQYu (ORCPT ); Wed, 9 Aug 2017 12:24:50 -0400 Received: by mail-pf0-f196.google.com with SMTP id p13so6576423pfd.4; Wed, 09 Aug 2017 09:24:50 -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=cnkpLTldxIkufTOrDVZlzwm3ljB7YEfSewpnnlyQVIc=; b=nAwDS5wSRkc4ruIWIZlFmgaWzgUXi/N3Id2dqHuge1x/9/K0M8MuOGkS4tfqLEBoHR wHIvLwfaiQW5TvGrWnuwbkSLrCt/bwqpj1oYAcu0M7AKeb/6kff7a2ESxTeBKBieCAAB ReKjzOQlnx1E7mxXdUlJneEwgrkH4oa2psBt2WK2AfXWF88qLK9GuVordZKRkZVJYlz3 Kn+xmzwPPwq8JkJ+oIeuTAs64R4UTQzCPCZP1L57rssVi0NJx/N0pxbauoSkDbiA2JgR e3GWs13R6YQ+R2Er9QroVKA+P3yi3wIwvmRW8pjTXlFSz6NpSzTFjSLBLjHW1WNTyI9I ixUg== 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=cnkpLTldxIkufTOrDVZlzwm3ljB7YEfSewpnnlyQVIc=; b=KKQl8BlKry6qk/FwgP/NRLqLI6KLiwS/XOvV4wDXkoodWnuCZ+PsGT5ndK5r/PYXPr u0s+rXshlQAlwqBTRq27QEy7KpjwaVbw9FSWKJakzMbB02KXdWSeUbu3BVi7xrD+ndVx YVRquqTyhFXfN2psQXUSGwVMl2/a1CtwRdsuOU2QqJw0h7JHZGZefdVWBxmanWOIa6Fl QubVNE8Bvu98aESOELSG/9s6UHPMVDf1Q5YoHohu2lL3eewZiE6uo+YjmW0yiLeiyEKm uxa3tpzp6luWmsHuiTL8L8UpJKvbHJ/63sVe+bjFoMkyql7NnMvjuGW/AbylXcduJEqj VSKQ== X-Gm-Message-State: AHYfb5iaBtAHUXBRZFcuGfg4b+En6ETTEewWMbRJaDDVU7hWFGeAnWoy 21553rZk29yrNQ== X-Received: by 10.84.229.136 with SMTP id c8mr9886592plk.351.1502295889748; Wed, 09 Aug 2017 09:24:49 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id l1sm4893290pgf.2.2017.08.09.09.24.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:24:49 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, petkan@nucleusys.com, chunkeey@googlemail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 04/20] carl9170: constify usb_device_id Date: Wed, 9 Aug 2017 21:54:41 +0530 Message-Id: <1502295881-20936-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/ath/carl9170/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/carl9170/usb.c b/drivers/net/wireless/ath/carl9170/usb.c index 99ab203..e7c3f3b 100644 --- a/drivers/net/wireless/ath/carl9170/usb.c +++ b/drivers/net/wireless/ath/carl9170/usb.c @@ -64,7 +64,7 @@ MODULE_ALIAS("arusb_lnx"); * http://wireless.kernel.org/en/users/Drivers/ar9170/devices ), * whenever you add a new device. */ -static struct usb_device_id carl9170_usb_ids[] = { +static const struct usb_device_id carl9170_usb_ids[] = { /* Atheros 9170 */ { USB_DEVICE(0x0cf3, 0x9170) }, /* Atheros TG121N */