From patchwork Thu Aug 3 16:22:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 797318 X-Patchwork-Delegate: boris.brezillon@free-electrons.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FnZExSId"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="d85To8nk"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xNb59736Sz9s65 for ; Fri, 4 Aug 2017 02:25:33 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=2gsGU6YPkvvTHKhlrm8FvWtyYFrKsVLFAnsiDJeh7ag=; b=FnZExSId3q65jYvQ+shYK5rnsw yiNYK+d3CBP5iYVVISIJJaSzenGDqGmTZgODNSEMqoEKUrhfAgJ2HNnWp9LsEbcUP7IsVEy6An0om Z+TP1WPfmTGiJ68AmKs/3W8d3bOb2VxT78+Zj2UtPZN5pqoQRccz0V8aFdi0C4smAwHWif/BhLOrR hFI85JgDuEeqNQk9hRaEYl7lPcJY4HKtJnWm2M+7It3wI2IeJpppHwEohGmCT+o+UudOqj7OIYfbl mjfAWN+NgpigFz+OgZroSGgar3YXGOH7QOeBYN2vPr9mvGOqDuDJfJHKq8vjmNL5ajXaFznsF6Xix 0uLgDxJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ddIwD-00035M-K3; Thu, 03 Aug 2017 16:25:29 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ddItw-00006H-Rm for linux-mtd@lists.infradead.org; Thu, 03 Aug 2017 16:23:10 +0000 Received: by mail-pf0-x241.google.com with SMTP id j68so1937451pfc.2 for ; Thu, 03 Aug 2017 09:22:48 -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=EXmLnLKnZrSh9ZyMLcOgqf7Eje7xXuVlKeowjtI6qXk=; b=d85To8nk2Qjo6P/pPdmu/dYJmdKUEZs612NBHJ4IlS1/iM74ArQQ/hcznwG510+W8g 4i/gq0ha1s0FXUWJge4BvCyVYxx7RadiLzJuIdNqMLBLhs7m+PtKCdS+tzVpD4L+fzKT 6107oZdbOo2qJYJHf3omtZZi9xlPWoTFSnDEysHEkWdv77W7NubttbZfzaKKCOJNSRb2 MV8Z4JvPcTCVwuM0kjItkdR4kWg0KRSGy0rtG9MCjk8XWsqhJRQW350D2bEemmNUWjfA xUA0Xi8UYcBf798S877fqC+5qWc7o88LwKnno8Qp2xU7eyof2+ji33m5uwQzReBFB2Iz 1nZw== 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=EXmLnLKnZrSh9ZyMLcOgqf7Eje7xXuVlKeowjtI6qXk=; b=smVXURlwn3rwCHeumphq5FjtO4bzZQvxVOtG7SocoW+A82iJsEu1zahE3NcTYWOS0d ej490AJ1BFNP8r8bijaLEcprVSNaCRLWXWxSvHFAJ6uYw+u7tr/clnXZfbMHPPS6NZBM lq0qYOMk36Et4OvUeN/VSvC85n9qvJMKqG9MB3Kn7nnGUpqzDwVVTGwwZ7gT39nPLL/B 4RBJAnCY/h5HvxUq/nFZ0pY/P9bUUksIoP7qC+0IULQYlPkq54ddVnDFxPry84cOl43Q Z/DCZHtqk/mDL8GGFnsoWbLETiITXCm9OAe6PU2GdllbwNq/DDoyyNUA0mJsW+tKJSzN AjxA== X-Gm-Message-State: AIVw111fojyBE5nAR6NNT8SC3Ak/G5Tm+gxrY67UV3aweEO+GGbknW7g taH0VwzVCIvnWQ== X-Received: by 10.99.3.140 with SMTP id 134mr2047406pgd.159.1501777367987; Thu, 03 Aug 2017 09:22:47 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.88]) by smtp.gmail.com with ESMTPSA id t12sm46903106pfg.12.2017.08.03.09.22.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Aug 2017 09:22:47 -0700 (PDT) From: Arvind Yadav To: dwmw2@infradead.org, computersforpeace@gmail.com, boris.brezillon@free-electrons.com, marek.vasut@gmail.com, richard@nod.at, cyrille.pitchen@wedev4u.fr Subject: [PATCH 6/6] mtd: pci: constify pci_device_id. Date: Thu, 3 Aug 2017 21:52:10 +0530 Message-Id: <1501777330-21380-7-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501777330-21380-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1501777330-21380-1-git-send-email-arvind.yadav.cs@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170803_092308_943109_A57A7361 X-CRM114-Status: GOOD ( 10.09 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c00:0:0:0:241 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (arvind.yadav.cs[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/mtd/maps/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/maps/pci.c b/drivers/mtd/maps/pci.c index eb0242e..7b3bb40 100644 --- a/drivers/mtd/maps/pci.c +++ b/drivers/mtd/maps/pci.c @@ -228,7 +228,7 @@ static struct mtd_pci_info intel_dc21285_info = { * PCI device ID table */ -static struct pci_device_id mtd_pci_ids[] = { +static const struct pci_device_id mtd_pci_ids[] = { { .vendor = PCI_VENDOR_ID_INTEL, .device = 0x530d,