Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2534157imu; Mon, 19 Nov 2018 02:02:43 -0800 (PST) X-Google-Smtp-Source: AJdET5f8f8gH16IqoI603FZg/kly7NZvsF5f/iUHOGqXTZqIiAT21hdfG+yfNiroZWdTQ+TMcdJc X-Received: by 2002:aa7:85d7:: with SMTP id z23mr8621537pfn.205.1542621763487; Mon, 19 Nov 2018 02:02:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542621763; cv=none; d=google.com; s=arc-20160816; b=nlZXm2y5Cbha9+4TC7EBtWqbQbFCO2AA9ZbKv2sr2DyTU58r614LFLtX8Aix0QOW02 tHLTQ8nkblNFeYZkT7EjS9KZ9vgCs7+h5UUqzm0WGD5/N5PqrDdD3Ruh553tmqTatAtM jnhFWZKC2BGoUzWo4VtwLKY1iEgZS4ll0/mq57QXhfO5Q5t5PZ1/H8jdq3gn3B5eOJnG 1QMRfCEXH9SwzX14KaqImtYX4O/SGFcOLxQZ1kcbXUDecwa7a2C0flJh+p1gdGbxegP/ Udr903PJjodrPjL/xgC6LPeS9mNxcf+uDPEJiAccFyaY70JLEQaVikovMKnpG275gWnE m1bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=u4sH42QZFsG+/4JYB0YvPqfe4PfL86ZFMDVPD+K9uGA=; b=dHjNiulhFvesd9QmOeeZiNCUVEcSiI3EqSVfuUb8K+396HgjIgz/tI4J0GKt6ZwiqB V+6OhKWL1d8PD7JeGlFMrNln5hs2FPsmHQvvI7rcDh51BJbvLTudEesHA1MV2oR/fbNz HEwJ//nyY/VvVVWtgJF/mMgXhl/EBDMKdcWrPKAPsNfrLfQVsofCSALiS4pWuN+AsLKe 6Yek46soP6J1h6awlC/jDqA3/TgFC3bme7XxmrsIMakiBvcBdRLJKMlYdb89iU39ISNq GK9kffJBjqQtJeRKSMqkS1FVed2Qb8ENtDz4pOR+pJEt6zRHGp6Se9dDPjd4zR9b9HWy ag4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=V5Bjj6j9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b124-v6si43075250pfa.135.2018.11.19.02.02.28; Mon, 19 Nov 2018 02:02:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=V5Bjj6j9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727584AbeKSUXe (ORCPT + 99 others); Mon, 19 Nov 2018 15:23:34 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:55958 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727084AbeKSUXe (ORCPT ); Mon, 19 Nov 2018 15:23:34 -0500 Received: from trochilidae.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 52EBF5C0929; Mon, 19 Nov 2018 11:00:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1542621624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=u4sH42QZFsG+/4JYB0YvPqfe4PfL86ZFMDVPD+K9uGA=; b=V5Bjj6j94oKYYCvqktapozcLtUv7UT5LQvrKN5SrAzoO0yV9Re6Ta1QqeKCe/wD2mF5UQl IVq9E6xRzcteY3QvxThBAlyRwkDDwHCx6PsBx8lXPmiEfVdbOQIplNlvXpwAzAKo7L+bO4 t5wU0yBlszS3owDNqpqOsJwqioN0WxA= From: Stefan Agner To: minghuan.Lian@nxp.com, mingkai.hu@nxp.com, roy.zang@nxp.com Cc: lorenzo.pieralisi@arm.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH] PCI: dwc: layerscape: constify driver data Date: Mon, 19 Nov 2018 11:00:22 +0100 Message-Id: <20181119100022.27501-1-stefan@agner.ch> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Constify driver data since they don't get changed at runtime. Signed-off-by: Stefan Agner --- drivers/pci/controller/dwc/pci-layerscape.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-layerscape.c b/drivers/pci/controller/dwc/pci-layerscape.c index 3724d3ef7008..905a0ab0e6fa 100644 --- a/drivers/pci/controller/dwc/pci-layerscape.c +++ b/drivers/pci/controller/dwc/pci-layerscape.c @@ -222,12 +222,12 @@ static const struct dw_pcie_ops dw_ls_pcie_ops = { .link_up = ls_pcie_link_up, }; -static struct ls_pcie_drvdata ls1021_drvdata = { +static const struct ls_pcie_drvdata ls1021_drvdata = { .ops = &ls1021_pcie_host_ops, .dw_pcie_ops = &dw_ls1021_pcie_ops, }; -static struct ls_pcie_drvdata ls1043_drvdata = { +static const struct ls_pcie_drvdata ls1043_drvdata = { .lut_offset = 0x10000, .ltssm_shift = 24, .lut_dbg = 0x7fc, @@ -235,7 +235,7 @@ static struct ls_pcie_drvdata ls1043_drvdata = { .dw_pcie_ops = &dw_ls_pcie_ops, }; -static struct ls_pcie_drvdata ls1046_drvdata = { +static const struct ls_pcie_drvdata ls1046_drvdata = { .lut_offset = 0x80000, .ltssm_shift = 24, .lut_dbg = 0x407fc, @@ -243,7 +243,7 @@ static struct ls_pcie_drvdata ls1046_drvdata = { .dw_pcie_ops = &dw_ls_pcie_ops, }; -static struct ls_pcie_drvdata ls2080_drvdata = { +static const struct ls_pcie_drvdata ls2080_drvdata = { .lut_offset = 0x80000, .ltssm_shift = 0, .lut_dbg = 0x7fc, @@ -251,7 +251,7 @@ static struct ls_pcie_drvdata ls2080_drvdata = { .dw_pcie_ops = &dw_ls_pcie_ops, }; -static struct ls_pcie_drvdata ls2088_drvdata = { +static const struct ls_pcie_drvdata ls2088_drvdata = { .lut_offset = 0x80000, .ltssm_shift = 0, .lut_dbg = 0x407fc, -- 2.19.1