From patchwork Tue Aug 8 16:02:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888695 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 9775A601EB for ; Tue, 8 Aug 2017 16:08:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A491287D2 for ; Tue, 8 Aug 2017 16:08:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F031288AA; Tue, 8 Aug 2017 16:08:02 +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 3B01C287D2 for ; Tue, 8 Aug 2017 16:08:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752589AbdHHQD0 (ORCPT ); Tue, 8 Aug 2017 12:03:26 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:32888 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752190AbdHHQDP (ORCPT ); Tue, 8 Aug 2017 12:03:15 -0400 Received: by mail-pf0-f196.google.com with SMTP id c65so3481223pfl.0; Tue, 08 Aug 2017 09:03:15 -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:in-reply-to:references; bh=3nGXo4vmZNMdDufsd1xzLLZG1ofTBGG/ENU8cPC9kCU=; b=Y5JRPFvDkcB2c9dT45Rh7ZXlFjtq+nrvrdoQLuVukBf8MqriNLLplais7Ece9KLBX4 TCsnT7/ktgCMdQRmmlmlFSNONxRsSAN3uyQNKbjAR6I4k7+hSH560oMJA5Vh+kxRYwhq JLEEd0DGzaHbLTnhuWbKyc5Qa8pwvIixgs5sCw7EuN8VamlawhUUNE8yIcyDVcxWbZhi nKRtyq4GCM/nV/d7qvInU2NlIRCYjo7w5LghzpBpgYJsX9sdYKtScQohiK2Pb2bkxgJ8 AwABSa6Hgu1Z9lek1OSDlp6SlhDI3MTICoJMyYfHdLaQB73uoKbU3TOSP/YYKDUFyqk6 9zVg== 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:in-reply-to :references; bh=3nGXo4vmZNMdDufsd1xzLLZG1ofTBGG/ENU8cPC9kCU=; b=hQr3L6rRTwavfWJ2TrEpawgIJMPHY79oPEYY9RflTeLwPN9kgQgDZNCMivT+h9oZlr j/GkLWcjM7V7l1IZLUyvGDP+cpts9jhnn/cSUjBgBKtOUj4jJQAJQ36i8szGmmVhsEhM hlNXdA03hvA9uyKCKLP6ZFPjOaJqZPIxu+JvA7XjiQ6GXVe6sAJqzEtTaVWZeuCvJMWQ nhjAhoxZll4w+VNR1h0Z0ohqRSj2gtwi3PAaoD2I1xVn8gKTiMVMvNvHYSfq8i66cp/G 7JfxYYjab417KB7EYIU5ffUHX1x8AKyZItuZxLAqzKrEQ1QVjR+L6mhde7E/ULARMs/o M56Q== X-Gm-Message-State: AHYfb5iwMhUoICjoKMM46SBHL7axdeGjsOjVSedhYAhi/xaSZkKK6dzg oCQL04Bp2apiPA== X-Received: by 10.84.217.213 with SMTP id d21mr5426909plj.347.1502208195118; Tue, 08 Aug 2017 09:03:15 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id c19sm3799061pfk.3.2017.08.08.09.03.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:03:14 -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 25/35] wireless: marvell: libertas_tf: constify usb_device_id Date: Tue, 8 Aug 2017 21:32:51 +0530 Message-Id: <1502208171-12118-2-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502208171-12118-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502208171-12118-1-git-send-email-arvind.yadav.cs@gmail.com> 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_tf/if_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/libertas_tf/if_usb.c b/drivers/net/wireless/marvell/libertas_tf/if_usb.c index e0ade40..e9104ec 100644 --- a/drivers/net/wireless/marvell/libertas_tf/if_usb.c +++ b/drivers/net/wireless/marvell/libertas_tf/if_usb.c @@ -31,7 +31,7 @@ module_param_named(fw_name, lbtf_fw_name, charp, 0644); MODULE_FIRMWARE("lbtf_usb.bin"); -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) }, { USB_DEVICE(0x05a3, 0x8388) },