From patchwork Wed Aug 9 16:27:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891001 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 6D12E60384 for ; Wed, 9 Aug 2017 16:27:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C68D28A85 for ; Wed, 9 Aug 2017 16:27:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 515E528A9B; Wed, 9 Aug 2017 16:27:58 +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 1ABF728A85 for ; Wed, 9 Aug 2017 16:27:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753916AbdHIQ1m (ORCPT ); Wed, 9 Aug 2017 12:27:42 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33234 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753318AbdHIQ1j (ORCPT ); Wed, 9 Aug 2017 12:27:39 -0400 Received: by mail-pg0-f67.google.com with SMTP id u185so6290252pgb.0; Wed, 09 Aug 2017 09:27:38 -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=/jM0GfgFIkmCCV9htaV6a4Vg+h8F8tWnZPCgJ1730Ag=; b=OyphI4sj2hZSts3sHPhjx7cUYkmoBpspv2guPq3PTlYT+TZMtZAZOTsOe0Jw5agdJC A9J0lM9GM8xGO3iYS41igGbzA7kYZqeeF5tcYmQrx3ASIUMQ76/fANvso/csaciJQwxr BFf6mBqchu9/FLtcbrbMHBE9sj46/iD5xcT4ibRBfy6Ohao3BsC1KSwJ7uwkoHGvQum5 KwRE0myWwcozEWiV8gJ1Ki087JAYZmKrbTBPl8gCLh062vWuTz41GTCq6b7GbgbiZMjH qLpyfbpuLefoV/0tXfvLCPTsH4oNcYivQMJDJpD/10FR+twlABEAJrkuCp+BatE86Y8I 6N+g== 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=/jM0GfgFIkmCCV9htaV6a4Vg+h8F8tWnZPCgJ1730Ag=; b=iI2EPtiO1DcFc2Dl1OR5gUat+OElF5BMkvNB21JOjgA3ZbKij/kwkQtv+5tZTcXl44 UfZeaslLcfwgLsjMhJgH1XEg1f3eoE4DKoziPwiS3ub8VJAv4UAXkf42mJ9H6TP5QRRu PhDwR/iauN7M6XSHJQSoWwVZgTa7AjHpZdfKJYaMfR2aCEFQ3K3gjKHCobtnP6taahrK E+UGnwS5BO4xAAjZLXWDVwZ2UBCLIiKGq4KgE8V1JTAoZ7w3BOd8HbQ3jV54etObPuEM +tEEXUVcyJzV+vcmS7RaPH7kqjgj3T4gE5BgUJd2tDXHGxL3KbY9yhs0bneowMzbPC0g +leg== X-Gm-Message-State: AHYfb5gMx3DBS8j3InDdyGmJVBwFU7OZVxf9QKXP76RzkE6hMjxTgM6b VjYDngXQQ8sZdMI8tT0= X-Received: by 10.99.179.9 with SMTP id i9mr8337444pgf.413.1502296058680; Wed, 09 Aug 2017 09:27:38 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id c80sm7107196pfb.141.2017.08.09.09.27.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:27:38 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 09/20] libertas: constify usb_device_id Date: Wed, 9 Aug 2017 21:57:28 +0530 Message-Id: <1502296049-21253-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/marvell/libertas/if_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/libertas/if_usb.c b/drivers/net/wireless/marvell/libertas/if_usb.c index e53025e..16e54c7 100644 --- a/drivers/net/wireless/marvell/libertas/if_usb.c +++ b/drivers/net/wireless/marvell/libertas/if_usb.c @@ -52,7 +52,7 @@ static const struct lbs_fw_table fw_table[] = { { MODEL_8682, "libertas/usb8682.bin", NULL } }; -static struct usb_device_id if_usb_table[] = { +static const struct usb_device_id if_usb_table[] = { /* Enter the device signature inside */ { USB_DEVICE(0x1286, 0x2001), .driver_info = MODEL_8388 }, { USB_DEVICE(0x05a3, 0x8388), .driver_info = MODEL_8388 },