From patchwork Wed Aug 9 16:31:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891041 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 99DDD60384 for ; Wed, 9 Aug 2017 16:31:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89E1F28AB8 for ; Wed, 9 Aug 2017 16:31:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7ECB228A98; Wed, 9 Aug 2017 16:31:33 +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 3072528AA2 for ; Wed, 9 Aug 2017 16:31:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754161AbdHIQbR (ORCPT ); Wed, 9 Aug 2017 12:31:17 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36853 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754155AbdHIQbP (ORCPT ); Wed, 9 Aug 2017 12:31:15 -0400 Received: by mail-pf0-f196.google.com with SMTP id t83so6599117pfj.3; Wed, 09 Aug 2017 09:31:15 -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=fi16TkVGVwEVeDoihCdkme9rmwLtVjAkQ9ZJxwUfdRQ=; b=OGqRjf+ymGhE58Uc8eKjLnVGIBcSkC9vCtnFV1+2rtQGrjwbpEfKLqLyLFbL2JlZWg KusJ9ygAh+bNqJOWa4gFE8tX3j/dduVpce5i4+MLSOl2RW8Gnvr/4Vt8ybn9YO27ilDE 4eKuZKUD3hugiRE4ceOz5ID0YbiZypszc7dOaZmRjmJqWxKgeLZsHY3dYfwEMiI0vtya 6usNwvvOFGkdDVsJPr2/uenwLFEdsay7ZaEGx7DTyvxr6cmEfra/k7IUGS6zJfUkslDH Jg3zL0+2R5wK9q8Vznu0cLmS/ygz2VYN2vkTEyC3L5gUags+61d3xaXjlPf4fsktVCTb qJvw== 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=fi16TkVGVwEVeDoihCdkme9rmwLtVjAkQ9ZJxwUfdRQ=; b=KVp0oJCThaLVXhxmavcFHNEPgeM2IOjOFm3XNtABE3z3kfw4Fghxvi10kjKlrprTiw C2t9THEzZsmifM4Y7f5UArOLYGEdFiGpqHhlHz4XL1PN9ONB7Bu4E9lhim5OJP+Xrpod Qi2dfzZ6SAh1n4vu6VC7AlAG/9fcFWWcRpmQzObvKymEHsTc3FdgXdVC5wS1TN9VqCfA Vwb/MLP1h0eqOc0OYLW/6m7+sMXeZDE1M0APRqWQOhQ6/V2bm19QWhSX6zPXhmJsunqR xla2vktisair/9ibhGGcPNziVabVQOqINeEm6X+kvnB6kaEz9xCCTOdZZTDnW9Fruowb 5FTg== X-Gm-Message-State: AHYfb5hStP7aJvYIh+H81OMTGRKkEOw2y2QfleaRMDhIDMVhhyRHuN0G gZz2ifnXAyiu7g== X-Received: by 10.84.218.135 with SMTP id r7mr9778627pli.184.1502296274792; Wed, 09 Aug 2017 09:31:14 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id 67sm7253972pgg.42.2017.08.09.09.31.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:31:14 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, Larry.Finger@lwfinger.net, chaoming_li@realsil.com.cn Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 18/20] rtl8192cu: constify usb_device_id Date: Wed, 9 Aug 2017 22:01:05 +0530 Message-Id: <1502296265-21726-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/realtek/rtlwifi/rtl8192cu/sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/sw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/sw.c index 96c923b..e673bc2 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/sw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/sw.c @@ -275,7 +275,7 @@ static struct rtl_hal_cfg rtl92cu_hal_cfg = { #define USB_VENDER_ID_REALTEK 0x0bda /* 2010-10-19 DID_USB_V3.4 */ -static struct usb_device_id rtl8192c_usb_ids[] = { +static const struct usb_device_id rtl8192c_usb_ids[] = { /*=== Realtek demoboard ===*/ /* Default ID */