]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
PCI: Constify struct pci_ecam_ops
authorRob Herring <robh@kernel.org>
Thu, 9 Apr 2020 23:49:21 +0000 (17:49 -0600)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 1 May 2020 15:28:59 +0000 (16:28 +0100)
commit0b104773b4f72ccd8af98a2f1efe69b174c344d3
tree911e69c61000209ee777ebd565a493caf9dce609
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
PCI: Constify struct pci_ecam_ops

struct pci_ecam_ops is typically DT match table data which is defined to
be const. It's also best practice for ops structs to be const. Ideally,
we'd make struct pci_ops const as well, but that becomes pretty
invasive, so for now we just cast it where needed.

Link: https://lore.kernel.org/r/20200409234923.21598-2-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Andrew Murray <amurray@thegoodpenguin.co.uk>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Cc: Jonathan Chocron <jonnyc@amazon.com>
Cc: Zhou Wang <wangzhou1@hisilicon.com>
Cc: Robert Richter <rrichter@marvell.com>
Cc: Toan Le <toan@os.amperecomputing.com>
Cc: Marc Gonzalez <marc.w.gonzalez@free.fr>
Cc: Mans Rullgard <mans@mansr.com>
Cc: linux-acpi@vger.kernel.org
13 files changed:
arch/arm64/kernel/pci.c
drivers/acpi/pci_mcfg.c
drivers/pci/controller/dwc/pcie-al.c
drivers/pci/controller/dwc/pcie-hisi.c
drivers/pci/controller/pci-host-common.c
drivers/pci/controller/pci-host-generic.c
drivers/pci/controller/pci-thunder-ecam.c
drivers/pci/controller/pci-thunder-pem.c
drivers/pci/controller/pci-xgene.c
drivers/pci/controller/pcie-tango.c
drivers/pci/ecam.c
include/linux/pci-acpi.h
include/linux/pci-ecam.h