From patchwork Tue Aug 8 15:59:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888611 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 55FE9603F9 for ; Tue, 8 Aug 2017 16:00:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4645428905 for ; Tue, 8 Aug 2017 16:00:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 392BC28900; Tue, 8 Aug 2017 16:00:05 +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 C9A8C28909 for ; Tue, 8 Aug 2017 16:00:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752472AbdHHP7X (ORCPT ); Tue, 8 Aug 2017 11:59:23 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35112 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752221AbdHHP7U (ORCPT ); Tue, 8 Aug 2017 11:59:20 -0400 Received: by mail-pf0-f194.google.com with SMTP id j68so3459212pfc.2; Tue, 08 Aug 2017 08:59:19 -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=yUt6gU+27EB6EsE0PnCwnoRVfTWMdul3ULtNKFkEheo=; b=pddkE5bY7Yp2Jvg8AVDEkGDtnmnh1gYbs/Sks+zw26sA6rVGrZigRHrZC2GbHi4dNT SFGAQMqZQicCTWUL0ZWs+X82I1iZwc5Ib64oUeCUd23ojuBvfW+eH5+k2cATLSUG6RDV DYXyMvdtuhlMQdSBC3RA1hdXWKx+tsNEh+BMgiIn3pdDVsF1DedyBgfqIASAbofr76Uq yq014dfNZPwMUlh5LSSRHAraaSzfl2iTGBKr2wn7fJQOc9yLV8Oiz5hPxghuQZEJqooS A8NG10JNS/qIbUK6yB0xnSVHW1+PQNYssQvXYnlgcM0+u+iGGiAGIeC2HFAyVK1F4hGx 7a7A== 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=yUt6gU+27EB6EsE0PnCwnoRVfTWMdul3ULtNKFkEheo=; b=sf6giME+4B2yjK9chRu0mQJjGjN3QmRMg6MAA7CRdsoBbjhb57ajDSKh8EZlKU0Oh8 obDHjcTFaiiEjBAU5pkdR9AFO9yj/snAP82y+lcN5SjStTofuPV7pj8WBCPiqAD07t0e Issuj+fd+qOqGrNZ+DhS1c/kM9RRNvMvDSLXCnw8/Tl7jQDyRFtd13ladLeYV17T8mXL WD7lL/feiwn7QB+901MyA1iC1nNbjGlefVwtvL0/PfvH0pXHRL6tqtJrVdHQf/kPdiAh F8t1L2C+Pwd1o2uYanQhVnaEJoKh3kn/eT6Y/qipEanQ4vtDV3MDLvS3RbQx3PTI9kZT htXg== X-Gm-Message-State: AHYfb5hoBxNWiFCYGugJ5k23hMD10XNEbIiNE0Aw5jyeTVIak/cRsUpx Z1muNj+E+g3nlw== X-Received: by 10.84.215.203 with SMTP id g11mr5450687plj.462.1502207959621; Tue, 08 Aug 2017 08:59:19 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id p126sm3434836pfp.28.2017.08.08.08.59.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 08:59:19 -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 16/35] wireless: ath: ar5523: constify usb_device_id Date: Tue, 8 Aug 2017 21:29:10 +0530 Message-Id: <1502207951-11692-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/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 */