From patchwork Tue Aug 8 16:04:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888673 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 14688601EB for ; Tue, 8 Aug 2017 16:05:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0406928826 for ; Tue, 8 Aug 2017 16:05:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED43028903; Tue, 8 Aug 2017 16:05:12 +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 7796F28826 for ; Tue, 8 Aug 2017 16:05:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752851AbdHHQE5 (ORCPT ); Tue, 8 Aug 2017 12:04:57 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:38685 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752346AbdHHQEz (ORCPT ); Tue, 8 Aug 2017 12:04:55 -0400 Received: by mail-pf0-f194.google.com with SMTP id h75so3460230pfh.5; Tue, 08 Aug 2017 09:04:55 -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=7V1Q0As3GNR1qcdKIWOzuh9fiiBFgUm+9oLXJfcGDI8=; b=cLg839HttTyQie3bMOZCfViQ22FnGZN9PyuFktihXX1ewGK+5P+XQe12pjxUDvWOap HrNHJcHUBYnj3s77laTYE73EFmjb6bGE8h5iaeocBdN5IMWQogf0s+zFL/IpqwRy+/VT p7dvIsnvBLLtZ6cyAhB9aLIJX38ertS4vcMlixAuZXJg8rfr+3Vdd3+VEr+5P2qPj9D/ F0K/Czabk0EDMy8NJbpdGHtvvo8GtQPAWGX6FmP74Oa6NlVd675IkevDvJBTqSgbODcH xYUD0/2FluC3Khk7oQN0XbdqUV4Ytbb1S74TzSyTS5JEAPqEBQfBm2AIUyJAnJ22mFJJ EDiQ== 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=7V1Q0As3GNR1qcdKIWOzuh9fiiBFgUm+9oLXJfcGDI8=; b=FaZkN8LjRgL2RHU7t+zqtEOtyEL3zA7+PLP/2bLy9ch+ES/ycuz1w8jcjmy7002/wX HYiLaRqDYlI1ZzYI7Vr3wHnEbByVcsVOPtmtjLjguphNarR/vXoBrC3TIs5qMXKcKmJI k31C6keuherT/MaUUvAwv/Ep2zHLn/AxezAXMd/tFb7r4E3MBZth/yO+HbyeG9UgCUnl XXMXNaTN+vS1A9iCKFyQWuaugheKXPG/WP/V8kzQ7nCDoui6oXJXnohfyTSGBFhh7tXT Bszp3Fr17W4DdIGwtHMynz5nJ/tKylN9ZNPNh9/GePaaEYGTEoOzUA18oDTMlTnmULxR oPVA== X-Gm-Message-State: AHYfb5gjJB4wi8Z924GNjFvllyFSw4i5juC8Bp0bXBYXeY13Okl/0Amf d+alCu5LsbBkDaNla58= X-Received: by 10.84.204.133 with SMTP id b5mr5350951ple.124.1502208294697; Tue, 08 Aug 2017 09:04:54 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id n16sm2958606pgc.84.2017.08.08.09.04.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:04:54 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, herton@canonical.com, htl10@users.sourceforge.net, Larry.Finger@lwfinger.net Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 31/35] wireless: realtek: rtl8187: constify usb_device_id Date: Tue, 8 Aug 2017 21:34:45 +0530 Message-Id: <1502208285-12342-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/realtek/rtl818x/rtl8187/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c b/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c index 55198ac2..121b94f 100644 --- a/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c +++ b/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c @@ -43,7 +43,7 @@ MODULE_AUTHOR("Larry Finger "); MODULE_DESCRIPTION("RTL8187/RTL8187B USB wireless driver"); MODULE_LICENSE("GPL"); -static struct usb_device_id rtl8187_table[] = { +static const struct usb_device_id rtl8187_table[] = { /* Asus */ {USB_DEVICE(0x0b05, 0x171d), .driver_info = DEVICE_RTL8187}, /* Belkin */