From patchwork Tue Aug 8 16:05:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888693 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 1A46D601EB for ; Tue, 8 Aug 2017 16:07:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D48C287D2 for ; Tue, 8 Aug 2017 16:07:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02269288AA; Tue, 8 Aug 2017 16:07:49 +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 B2766287D2 for ; Tue, 8 Aug 2017 16:07:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752786AbdHHQGb (ORCPT ); Tue, 8 Aug 2017 12:06:31 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38274 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752668AbdHHQGQ (ORCPT ); Tue, 8 Aug 2017 12:06:16 -0400 Received: by mail-pg0-f66.google.com with SMTP id 123so3397964pga.5; Tue, 08 Aug 2017 09:06:16 -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=EWcmro4pseumMtrEfKtgtoYhfLIujihx/WnJ8kAZi/Y=; b=PjRaPJejdoZDriGPvsJNrm7u+TCgOP3maCdYjxKVjVbAwNSzBzAM9P28FtPek+UMt/ OryJkDS6/Sx22HeFQJSlS/hFWBQYCxF7a9Gt23A4yZwPesjoUlZBO8z1h1iGzMxtPYu8 hFgTLEcygdYgqhyO7kVVVrwivjGaRAWr0j/Fdhu5mXOtcSqJ7Q06WDp0jvVHNYn5637f hVQuSwEn7WekiGL9EUX/WKD/y4uIK5gdlr6hCRY/Gta0Tibn7Kg5ic5E68za6FqdIT6v NrSeoBL0QXvxDXszw95oQ8EPMABThOBwHJEQ90v+B4Zumg/XJZUnUJupNh/EBkIJjBrd WR8g== 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=EWcmro4pseumMtrEfKtgtoYhfLIujihx/WnJ8kAZi/Y=; b=IvvI6dx9oBis1uDwcvtQ/el3SU2NyGJEG82HqvmRr8L6K4oKtX9BOmv7mJPwEbqL6f NjLqL/NrRAwJqv4C4NUxXrcPjGz5i4CIa1ckO3RIZ8iVquI9oQUWf24ngBTTNY57VVeZ ZMRUaf1waF91/zHsPcItuh6BE+OyidBe3OPXPLIxZeq765xIZtdlk+GmgCkU+rodnPhg iXkXmG7aLdXdLcjNTiWxnvMkK+6q80fexPDLZzb009Cxt7yGy/+KzP5NdZERM1ebvJD3 fbw71G/f15VZ95q0WC7qhj8XV7Xz5CiF0CRi7y68AmnY+7NM8HFKwhV4aYZzJC9ighuI CO9w== X-Gm-Message-State: AHYfb5gyvpgVWW8YOEHbMFiZe5DZLBtaDHukQxsmFo9BSPQwMqK1GLm8 HWtov09UHbRSiw== X-Received: by 10.99.43.5 with SMTP id r5mr4457778pgr.313.1502208375904; Tue, 08 Aug 2017 09:06:15 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id s87sm4106012pfa.86.2017.08.08.09.06.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:06:15 -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 33/35] wireless: realtek: rtl8192cu: constify usb_device_id Date: Tue, 8 Aug 2017 21:35:53 +0530 Message-Id: <1502208353-12447-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 Acked-by: Larry Finger --- 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 */