From patchwork Tue Aug 8 16:02:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888697 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 E899D601EB for ; Tue, 8 Aug 2017 16:08:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB901287D2 for ; Tue, 8 Aug 2017 16:08:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0D13288AA; Tue, 8 Aug 2017 16:08:20 +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 8D118287D2 for ; Tue, 8 Aug 2017 16:08:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752313AbdHHQDP (ORCPT ); Tue, 8 Aug 2017 12:03:15 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34591 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752098AbdHHQDN (ORCPT ); Tue, 8 Aug 2017 12:03:13 -0400 Received: by mail-pf0-f195.google.com with SMTP id t86so3478062pfe.1; Tue, 08 Aug 2017 09:03:13 -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=UJjz/PYuSt/00rudSmqtrDSjGH0HWQZn9l+baI5+K30=; b=EXgJM9C02gYheV8AtcZR+WSlriX44EVmiBAxXpuRklhWkoQ48zXWhzWnz13XZDauS6 u00NxstLLZD6/kFlYracl4yBf4NON58d2MqfG2B5LQoUwKBI2i0muBjonzaR1g/iGXtT PNt7wRkQjj0NZiqueRTKQWjPRLHl3wbnr4z//rSqwNgs6paceTTEhXK2kc7Qm2w3dP1L LITWak+w35r1UtH5XC3Jpt9fouDk3Xx3252Fqo7w56O7DHVCDCskE+txq1EjBdOeKR2y vpaLQboNCp2swoa+BXfRRFawzLtM8fGi8OQo4LzIQVAI+CkqQcwbNHct1PBZvCBQo8Kp lDtA== 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=UJjz/PYuSt/00rudSmqtrDSjGH0HWQZn9l+baI5+K30=; b=TgjmmZ7LuJSjMsDohryebMX86DDoT+QCVxhHEogXxXj5NOKQZjL+/DNqnTjidIM9R9 d+ggqFVL3cMwNCJQItFv6yomeaj9CXOHVEEOUALg/9qek4tCZ1QGrIIehTzcICdsTFfW OxeI2JuJIqR/sM/cErtYs1qFVKv6qgKk3+8y5sQWuXLgq34dFFjI6ZF9x4DjgWUz6e1C zPNfq607iNQ+HqcQUwGzw1qarbQA4rnARg1QX3Zu8RwRjkdI+GMS4M9wnvCfFFpPCRmS nwy4zUf+aIvdlBv+58ixYe6O9sqcn57KkxWzpHDdnsX+CzFJJzOe7iE8yZtFxa632THd I6eA== X-Gm-Message-State: AHYfb5hJ+ghDi6dwP4KTEe1pQ4msMCKcmN9us1V/XW6SDmtqAuinxy26 Lj4vtANQUqfAVw== X-Received: by 10.84.218.195 with SMTP id g3mr5498704plm.386.1502208192899; Tue, 08 Aug 2017 09:03:12 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id c19sm3799061pfk.3.2017.08.08.09.03.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:03:12 -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 24/35] wireless: marvell: libertas: constify usb_device_id Date: Tue, 8 Aug 2017 21:32:50 +0530 Message-Id: <1502208171-12118-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/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 },