From patchwork Wed Aug 9 16:24:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9890969 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 4B58760384 for ; Wed, 9 Aug 2017 16:24:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3912527F8F for ; Wed, 9 Aug 2017 16:24:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DF2628A98; Wed, 9 Aug 2017 16:24: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=ham 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 BC59827F8F for ; Wed, 9 Aug 2017 16:24:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753916AbdHIQYZ (ORCPT ); Wed, 9 Aug 2017 12:24:25 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33581 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753654AbdHIQYV (ORCPT ); Wed, 9 Aug 2017 12:24:21 -0400 Received: by mail-pg0-f65.google.com with SMTP id u185so6284275pgb.0; Wed, 09 Aug 2017 09:24:21 -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=h3QYCXwmx7SLsgt9zrxA8XVAYbmUHPAmXAbT7PWf8JY=; b=RoZ7/LZevSY4wZJviPuE4gDZbclF82/IIeGVEPGU5MWtr5zOS3FzSc9Bb9bPPJtj7F yN9hiBRCypG3qZ57w11WvmHgBjCAJa5UVmoCj4hAxnVToNkB8ii90a5IZr3lVGkklRZ9 WYea9t6llhfe1zSpZfHhEtxbDYeayE/oQbTRGzMoBiTPj+f0m7SI+9BM3+JA3JOp61Tj 6gOid5w5yzkHkxukzgDCOYV7rvBjH/q6w8gshH5so4yFyz8m5vp1tN8XvlGne/GvUiZt 4d+ELwQvUF0czxf0VrPDQGilHkGoLxHE0/OTlvXU1bMLQlQ6PdGT6OjbWOlOLGKSbLwH 1Ogw== 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=h3QYCXwmx7SLsgt9zrxA8XVAYbmUHPAmXAbT7PWf8JY=; b=AGyf/MiSFzz/wgM3+gUCsvUzRuTPlNSx68hVt63XKyFrrnDV+U5Fv3xvXvRFcGFbFR R6eN6wL0CfLQMhhOhIswb5TvmvJifRcsTNjSHQNRNcdXgx7xvWYE2za8qoKo5AC+IKcJ rvEabdZjp/6R/QSSewAaaTQVDGch48cfwImKRgpVHmDfjyinvAO/so7i/na9T97PKqPi F1k3+upChqJhfTg2Jp8UbuLcEuwYQkEO2dLP30eupMXNj3zHca1qct4coiq1A6mqZhEb VVDsADN52hz4vm+x8zT9ypf8YnWcxA2u+8tcn4jYDcbHWw00g/KMaQHaKmysi+ahlHB0 7qZw== X-Gm-Message-State: AHYfb5jv5gnC9pxtX5pB+zEe2T6oAWGQKhV3NO4fgMAjEkF0PTQ2Culk uBd98nGNAuYVvg== X-Received: by 10.98.29.72 with SMTP id d69mr8782202pfd.226.1502295861147; Wed, 09 Aug 2017 09:24:21 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id c14sm7697252pfl.160.2017.08.09.09.24.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:24:20 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, petkan@nucleusys.com, ath9k-devel@qca.qualcomm.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 03/20] ath9k: constify usb_device_id Date: Wed, 9 Aug 2017 21:54:11 +0530 Message-Id: <1502295851-20880-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/ath9k/hif_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c index 0d9687a..c5f4dd8 100644 --- a/drivers/net/wireless/ath/ath9k/hif_usb.c +++ b/drivers/net/wireless/ath/ath9k/hif_usb.c @@ -20,7 +20,7 @@ MODULE_FIRMWARE(HTC_7010_MODULE_FW); MODULE_FIRMWARE(HTC_9271_MODULE_FW); -static struct usb_device_id ath9k_hif_usb_ids[] = { +static const struct usb_device_id ath9k_hif_usb_ids[] = { { USB_DEVICE(0x0cf3, 0x9271) }, /* Atheros */ { USB_DEVICE(0x0cf3, 0x1006) }, /* Atheros */ { USB_DEVICE(0x0846, 0x9030) }, /* Netgear N150 */