From patchwork Wed Aug 9 16:30:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891029 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 843B160384 for ; Wed, 9 Aug 2017 16:31:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 737E228A85 for ; Wed, 9 Aug 2017 16:31:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71FF228ABA; Wed, 9 Aug 2017 16:31:26 +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=-4.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, URIBL_BLACK autolearn=ham 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 9558028A9C for ; Wed, 9 Aug 2017 16:31:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752692AbdHIQa0 (ORCPT ); Wed, 9 Aug 2017 12:30:26 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:38832 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752684AbdHIQaY (ORCPT ); Wed, 9 Aug 2017 12:30:24 -0400 Received: by mail-pf0-f194.google.com with SMTP id h75so6592281pfh.5; Wed, 09 Aug 2017 09:30:23 -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=EFs1XL9PqOCY0AsWvMpfC8uJmWdwn85+HSKZL/NsScs=; b=JWSWrzYMcnWLgsVeCqYwnWqne5ju+1c8ABb2/j9Is8b98pols9afxaopshVtuC0dGr rNfgZzoi+fruHDANQ1KmbwvEkwKPJPmHJvh4O7KWqGsk8P21vCcsBLNS5eCI9+lUdc79 +Jw73UeeZ0N+awBfpEMpObrO6URosAdAKUrljVheAMMjFa0mLdsaDmhUTXYd9Nfrf4it XMZWxxesDIgMUw6zRB/h7jXJaLRduwrdkC56d2PMpLIcM31Ubbxw3w4EqSSgr7EoNc7c m4yl2E+xv4UYxJra+GIJqBP/qneUL5zCFBiyHTDSATzcbYhc5hM55l9Jj5li+RYqlxMG SOug== 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=EFs1XL9PqOCY0AsWvMpfC8uJmWdwn85+HSKZL/NsScs=; b=XenZFtDInIQBamFnZi3OdLT2D3ynp8f+SI7tnOyCHy/feesXcU3mPd9UbN5j2mLB3O cVSj12yv2bJI5Jlv8WHxx9DREPycxlzwNrnoY6fnfKmuq+lGBLNsBUvUzjpssAvmOrRW BWLs3rW8ea1zVoH+y3P/WdNLajUbUZ4L2JsWhy4hE3wTpg/krO3CQ365gPXZVZ76upir prGsTBMHDODJpFKYDdytq++5PVk83Vj7SKPWteRbSWgzTWhbMGFqDNLyijsGQsPcQIL6 5WgGgBpQvLwQNcvCqlE3hd0rHmODwOSIfzouin5IlquMb7HT7zjLTWaR5piy2FpHv6Pq 2tog== X-Gm-Message-State: AHYfb5hCd9caodNoytlLhJvSoqu2MGjsHsrShJ4y00JX54xvG4XZd2xw cosBgrn7iUAPEQ== X-Received: by 10.84.136.135 with SMTP id 7mr9964296pll.356.1502296223534; Wed, 09 Aug 2017 09:30:23 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id t12sm13195250pgo.46.2017.08.09.09.30.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:30:23 -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 v2 16/20] rtl8187: constify usb_device_id Date: Wed, 9 Aug 2017 22:00:13 +0530 Message-Id: <1502296213-21618-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/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 */