From patchwork Wed Aug 9 16:23:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9890989 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 0718F60384 for ; Wed, 9 Aug 2017 16:26:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA42228A85 for ; Wed, 9 Aug 2017 16:26:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF25528A9B; Wed, 9 Aug 2017 16:26:19 +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 A76AF28A85 for ; Wed, 9 Aug 2017 16:26:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753681AbdHIQYD (ORCPT ); Wed, 9 Aug 2017 12:24:03 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36401 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752723AbdHIQYB (ORCPT ); Wed, 9 Aug 2017 12:24:01 -0400 Received: by mail-pg0-f65.google.com with SMTP id y129so6259834pgy.3; Wed, 09 Aug 2017 09:24:01 -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:in-reply-to:references; bh=/6yeV5kXNMiD1y11aHOv20VzPho5auyRwl5Ud/EfyoM=; b=Dw01hXl8yJy0GmPEryPLTa15dwy2OFC6UE3FtDv5sRQysXh/RCL9we+IZQXT4hQjPV pqD0N4xJWQeLnSQhIB+Ce36s4KMZkio6MmCcCfn2a6naQN09pTbqNzyepXBdbC78ZDAy rRzbQEQ07IBD5tOvyIgONSq+Q32/5+LyQRaVcGEtloUx8JDtBh8MhTp7SFZgS3QLAtSV 0D9fEg9Q5/YhYJziY21vG18/FLF7fDfT723kS0Uv+jnrkSfVUIMBlt4NlKdGGby4zc/6 idUo5W8hgh4CAq5C89Lpn79PkGSEUjjPXuDC8PDeI7+T1BugWm3+MnDttdFVpE989Udy ip1g== 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:in-reply-to :references; bh=/6yeV5kXNMiD1y11aHOv20VzPho5auyRwl5Ud/EfyoM=; b=LMKoNoJ6gTA8rZn7Pq/3xNBFdNayB66ec0MliAT1y0eUDCk9E44DlFoq/jf/KDDbei XHGrEWd1E1l7t43fefmfYCCqMz6af3yKxCmuSehVlGj7V+iWNpJ9N62oIsOIv02lWyUV NBK6IbAVq89fdzDKSsxs8OyD9N3WrTCx6feOLeBFr88Envsf1xg/PthWiBz69u/shkxi m/LsjzF4+Ta2fICFOBxmzuJelo7uthNrwbGDylGBaF/NWdzkr5Nrkt+q9JwP97dZ43qN cFDVGPKGmoccm1x4cZ85v/o8qhy/A0fPNntnmTfd6guAvB5h/KQilYLsTtKRidw7wwLi QeCw== X-Gm-Message-State: AHYfb5jRdBaVO0hfRxrD9TEWbitlDU5HH1ZHTmFdSAw4UoMBrij2BODE 43Zf7iNuKI5dtg== X-Received: by 10.84.132.106 with SMTP id 97mr9473020ple.105.1502295840805; Wed, 09 Aug 2017 09:24:00 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id f65sm8794406pfc.109.2017.08.09.09.23.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:23:59 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, petkan@nucleusys.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 01/20] ar5523: constify usb_device_id Date: Wed, 9 Aug 2017 21:53:42 +0530 Message-Id: <1502295823-20824-2-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502295823-20824-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502295823-20824-1-git-send-email-arvind.yadav.cs@gmail.com> 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/ar5523/ar5523.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ar5523/ar5523.c b/drivers/net/wireless/ath/ar5523/ar5523.c index 106d6f8..68f0463 100644 --- a/drivers/net/wireless/ath/ar5523/ar5523.c +++ b/drivers/net/wireless/ath/ar5523/ar5523.c @@ -1749,7 +1749,7 @@ static void ar5523_disconnect(struct usb_interface *intf) { USB_DEVICE((vendor), (device) + 1), \ .driver_info = AR5523_FLAG_ABG|AR5523_FLAG_PRE_FIRMWARE } -static struct usb_device_id ar5523_id_table[] = { +static const struct usb_device_id ar5523_id_table[] = { AR5523_DEVICE_UG(0x168c, 0x0001), /* Atheros / AR5523 */ AR5523_DEVICE_UG(0x0cf3, 0x0001), /* Atheros2 / AR5523_1 */ AR5523_DEVICE_UG(0x0cf3, 0x0003), /* Atheros2 / AR5523_2 */