From patchwork Tue Aug 8 15:59: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: 9888613 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 76D82603FF 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 6A1DE28913 for ; Tue, 8 Aug 2017 16:00:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F13028909; 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=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 2371028903 for ; Tue, 8 Aug 2017 16:00:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752425AbdHHP7i (ORCPT ); Tue, 8 Aug 2017 11:59:38 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35125 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752228AbdHHP7W (ORCPT ); Tue, 8 Aug 2017 11:59:22 -0400 Received: by mail-pg0-f65.google.com with SMTP id l64so3388954pge.2; Tue, 08 Aug 2017 08:59:22 -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=n/dGfh+MfRxW4lhdgJ6EDocgURnjFN0P5qZdf/2hwxU=; b=XiZ55dVouIDT13xFNPi8mJYXFCHTAf/8CyukS+VAKTZ7hUjI17X1hYvIWNBK1yv2Tx jV/BJ5vV1UJjUETG6tTQK+dRLai3DW0cNq5oyfyBssi9oAEjfzyiJ1WmuENKV61Nko8z wsQlSC2I2Cra9GJ/QvV0kcDJssuTUtaCBJDPS+xLz/yg8yjNQTq/R5T3g9xE/jvEiNNH 9eohZVccAsfXRUFALABgOM1IviyT/gAu6PDg9gdXQrT7J29Gy0ip9g+ej5xR9e1lecpp kyVgDEGSui8M9FZrogk9lOkxgtWYrK+rM3biED6GYNpvZV8KpggyXW3HHd75XDW4P2d3 hYUg== 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=n/dGfh+MfRxW4lhdgJ6EDocgURnjFN0P5qZdf/2hwxU=; b=XKqYTDQLcOSNZkif9FMYxnUcz7l34nVdAFfrdzQPbIwdioHSCIHOQDPAoNSmd/zdzV edfUG7yjMCTedUnkkC2thHI0wyRpgyOnhFuZrRAguNdkhVo4b5t/nyeMsqwqPCLELlIL pNFFsDIntSDJtwBNzVrKyBdn5h4iZ3X0dW6MT7zyewJMF/eDmnc/CXcdOiL31jAB7eh1 ogtOoJ1Rc0H0I8RVyW/YIVonPF8VW5sqWYCB9t4B+aSPhudD6Q/dUwLtxl5xr0pOaSLQ WtgtGlVaFA6YIoX/UfeRspuBAzB8ZJo7Jt/+y96apMXyUcsbj6xcrTuGEt2VMvFmDjnr BB6Q== X-Gm-Message-State: AHYfb5h41zVirTYXSr20All/ptnzktHBkiIYHp5ikz1cGtRly7F0pO4C vttLeWIhm7wK+mwvtVo= X-Received: by 10.99.95.86 with SMTP id t83mr4620004pgb.351.1502207962126; Tue, 08 Aug 2017 08:59:22 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id p126sm3434836pfp.28.2017.08.08.08.59.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 08:59:21 -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 17/35] wireless: ath: ath6kl: constify usb_device_id Date: Tue, 8 Aug 2017 21:29:11 +0530 Message-Id: <1502207951-11692-2-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502207951-11692-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502207951-11692-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 --- drivers/net/wireless/ath/ath6kl/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath6kl/usb.c b/drivers/net/wireless/ath/ath6kl/usb.c index 9da3594..4defb7a 100644 --- a/drivers/net/wireless/ath/ath6kl/usb.c +++ b/drivers/net/wireless/ath/ath6kl/usb.c @@ -1201,7 +1201,7 @@ static int ath6kl_usb_pm_resume(struct usb_interface *interface) #endif /* table of devices that work with this driver */ -static struct usb_device_id ath6kl_usb_ids[] = { +static const struct usb_device_id ath6kl_usb_ids[] = { {USB_DEVICE(0x0cf3, 0x9375)}, {USB_DEVICE(0x0cf3, 0x9374)}, { /* Terminating entry */ },