From patchwork Wed Aug 9 16:23:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9890987 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 2A35060384 for ; Wed, 9 Aug 2017 16:26:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 190B328A85 for ; Wed, 9 Aug 2017 16:26:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E03028A9B; Wed, 9 Aug 2017 16:26:08 +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 8B4C628A85 for ; Wed, 9 Aug 2017 16:26:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753881AbdHIQYT (ORCPT ); Wed, 9 Aug 2017 12:24:19 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35767 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753654AbdHIQYD (ORCPT ); Wed, 9 Aug 2017 12:24:03 -0400 Received: by mail-pg0-f68.google.com with SMTP id l64so6269905pge.2; Wed, 09 Aug 2017 09:24:03 -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=nUHybgfzFD4CSN+wcYV1ssxOSE9QZYAKTBy26xR3EA8=; b=L5IzeC0ZXB2fEQ+SVEMEgBvcfH3K4Vw/6o6LGAYw3mqlvoq0Sd08nwQ5biqYTfxC4M QjV/n4MinRjM8JF1jHVBfmPOZvyoYyGws1ZhAbu7CE1x6D/EmAqO9Ok0yNGb9nPY2Mph 7H9kc9VkuCQD2mBenRcys8QpUwdLRSyPJFfxaYUM9cdB59jEFBBbz2+MmjFiHjEWsyc7 U+UOtDoVlq2uDMmH9DzBEBP7Kf80J1vfZEuAqeMQGDThRmj+cLs9QjrYSPrxtIjU5OWa KJtpf/WlwKDgWlCVk4eoZ5qAj0q58yrLxurwqGtS+XHElnH9x9h2V5gEvmiwYkeWAEkK zPrw== 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=nUHybgfzFD4CSN+wcYV1ssxOSE9QZYAKTBy26xR3EA8=; b=kyzytJglBArfDfHEu00ubTLScpKXHQhsgzFUVjsp3+vid/H2SrKMiR1gb6SuvLa+G2 DSybtabAkhMlMI9amv2nuBGLfQ6rwnfgw1jyPsIL7cXwgOACq8k8NHm2Lnl0SGAnDkRI NCi2W6MqABkQn1cT/pY95F9tI80G/dtpMDSkJoKZ+mH8fSQvO+MH9Vz3CIy1jGD9vi2H ajrBZZe1ZVIBITncX2tNEgmB3zJq7P2++lJfplOEJiDpIom0hyELnx3PhfqrksdeuL7V cRf7esON2Cbznm2R9IbwxlW0DMQjoPsfBn4dWDlZijkGId/R5H+kDRAMbPoc9DSc3e/a BQ8w== X-Gm-Message-State: AHYfb5gxEz+zI1+XYMoNmjC/2pDQTcQ0JbQ7LWNvgffflKJGtPqSP7bz w1PjjMvTygdrqIe2Nwo= X-Received: by 10.99.62.79 with SMTP id l76mr8199496pga.251.1502295843346; Wed, 09 Aug 2017 09:24:03 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id f65sm8794406pfc.109.2017.08.09.09.24.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:24:02 -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 02/20] ath6kl: constify usb_device_id Date: Wed, 9 Aug 2017 21:53:43 +0530 Message-Id: <1502295823-20824-3-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 Reviewed-by: Steve deRosier Tested-by: Steve deRosier --- changes in v2: Re-submitting wireless separately. 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 */ },