From patchwork Tue Aug 8 15:59:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888623 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 ADE2F601EB for ; Tue, 8 Aug 2017 16:01:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0B3928913 for ; Tue, 8 Aug 2017 16:01:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9570E288ED; Tue, 8 Aug 2017 16:01:12 +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 4B89F287F0 for ; Tue, 8 Aug 2017 16:01:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752521AbdHHQAA (ORCPT ); Tue, 8 Aug 2017 12:00:00 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38314 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752252AbdHHP76 (ORCPT ); Tue, 8 Aug 2017 11:59:58 -0400 Received: by mail-pg0-f66.google.com with SMTP id 123so3381304pga.5; Tue, 08 Aug 2017 08:59:58 -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=6WVAOT6ThnVM3jcm5yuXFhT+aNt/fuWzWp+GfhQ4mFk=; b=Bwt+jM8oHm8TYidJO1P52BUhl0uI0shbY7XB2GfwsvzbGeU50ysvHPRoB0BDCkHDgM A+tboKTMGnt+5M94NejTTa8to+Pf+4McditDCNa37iRr3nfwlpTWMnRCliX0c2qcbHVP KkP3mu0A9vzKSlVDByayhbyyY048DTb8gbhLJeiyg7frR3avSaY4wTe3R0Zzm8JPOTgO ythZUoM6gwkKti7dEMri+/UEGX7vBSH39UsBkOa6xVlcWAMCs09lFj7/P0QzXMP0B6an lmJ+KpJIfphYTNvsHBqAbIRDlS5r7BEmOdUvyBulfYYUDSgIQcOVsGA/Av1w2q4PBX1G UjOA== 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=6WVAOT6ThnVM3jcm5yuXFhT+aNt/fuWzWp+GfhQ4mFk=; b=ksy2tpJnc/Lye6jSJj5i8tyOzDIbVNl4OriOMnU3WlzLTI0EhM5VMygcg21FPjA0uC TUQ2xchNKQsK1HNTJHcDKY+YSKHmcevxekI9fadwj7+sTZPUDOpGdw88ZMDKZfKFaZRT Xst27eER/nOqCEQ+700vG2PlMOq05xJGAKZLqvAB0OuE7PNA57ja/NjOZfE+lbcOwI0r oCFMOAo2o4aiUCmRq/tWnGWklX+T1GqgOiHWKJQ4pdjGaknxO+OaGG1kS+N9W17JdeQI I1aEyVkfd5JqDotPbwUe7lhwLbY7Celt7Nw8GtL0gXTk9n7p+g8CPj3ZZghTpQIRXuZI WxJg== X-Gm-Message-State: AHYfb5ja+Wz/Tc+30d680uIHdMcNfyC9pnyajr07Mq8KdtthsXHe7+tu RSW89weI0cE5hA== X-Received: by 10.84.224.74 with SMTP id a10mr5272575plt.326.1502207997737; Tue, 08 Aug 2017 08:59:57 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id k185sm2116935pgc.31.2017.08.08.08.59.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 08:59:57 -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 18/35] wireless: ath: ath9k: constify usb_device_id Date: Tue, 8 Aug 2017 21:29:32 +0530 Message-Id: <1502207972-11744-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/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 */